Letter box in iPhone5 - xcode4.5

It works like magic to get rid of the letter box in iPhone5. Just put in the picture
Default-568h#2x.png.
And the app will open with the NavBar in the top in iPhone5 instead of in a letter box.
But how to reverse that?? If I remove the Default-568h#2x.png it still opens unboxed.
Is it possible to go back to the previous letter boxed version?
Or in a new project using Xcode 4.5 to build for letter boxed apps?

The simplest way to get back to the letterbox (3.5-inch display) on the iPhone 5 seems to be
Remove the 4-inch display sized launch image from the project.
Delete the app from the phone.
Clean the project using Product > Clean.
Install the app to the phone.
I asked how can this be done without deleting the app?, but it doesn't seem to be possible.

Related

Keep QDialog on top of everything, even fullscreen applications?

On a project I work on, using Python3 + PySide, I try to print a popup-message as some sort of notification.
This popup needs to be on top of everything, this includes fullscreen applications like games or browsers. And that's the point that does not work. It works fine for all windows on my Desktop, normal windows, maximized, but as soon as there is a fullscreen application or a borderless window ("pseudo fullscreen") the popup is created, but "behind" the fullscreen app.
I already use self.setWindowFlags(QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint) but this flag does get ignored by other fullscreen apps.
How do I fix this? Also without giving focus to the popup.
It is just there to present information, and it is not good when your window looses focus while playing a game.
My code can be found here: https://github.com/GosuSan/PyECM
additional Info:
- my project aims to be cross-platform, so I need a platform-independend solution
- I am running linux, without having a windows machine atm,
so I can't test stuff there.
If you need any more info, let me know!
Edit:
It seems that PySide.QtGui.QSystemTrayIcon.showMessage does what I want, it works on fullscreen as well as on borderless-windows. So I will try to either find out how those messages are displayed on top, or just use them, not sure for now.

iOS 9 status bar appears below black bar

What is happening to my app in Xcode 7 / iOS 9?
The whole screen looks condensed, as if an iPhone 4S app is displaying on an iPhone 6. It looks normal in the iPhone 4S simulator.
I thought it was a problem with the auto layout constraints in the main storyboard, so I eventually deleted everything apart from the root view in the root view controller (blue screen), and there's still a problem with it.
I tried enabling size classes, thinking that this was the problem due to previously being disabled, but the result was the same.
Is anyone else getting this problem in their existing apps running in iOS 9?
Target>General>Launch Image Source>use asset
it will create new asset named BrandAsset, place your launch images over here. Create LaunchScreen.storyboard if already not existing and select it to Target>General>Launch Screen File.
Thanks for the answers. They pointed me in the right direction, as I wasn't aware it was anything to do with the launch screen.
I found out I had no LaunchScreen.storyboard file. Digging around in the docs led me onto this:
New projects are created with a launch screen storyboard file called
LaunchScreen.storyboard. Alternately, you can create a new launch
screen file using File > New, selecting the User Interface category,
and choosing a file type of Launch Screen.
It was weird that I had to do this, as I only started developing this app in iOS 8, and apparently this was a change in iOS 8. But with iOS 9 Apple are obviously getting more aggressive with deprecating incorrectly set up projects, and the consequences were that it was bug to my app.
The positive I guess, is that all of this forced me to at least create a launch image instead of having nothing.

WatchKit Menu Items Not Displaying

I'm in Xcode 6.2 Beta 3 (Build 6C101), I've added a menu and two menu items to my Interface Controller, and created IBActions for both. I've given them titles and images, but when I run the app nothing displays.
I've read
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Menus.html
and can't see anything about need to show menu items programatically - what am I missing?
You do not need to present the menu programmatically. The only thing you need to do is wire each button to IBActions in your Watch app extension.
The most likely issue is caching of the previous Watch app storyboard. Do a clean build and try again.
Finally, as you likely know WatchKit menus only display on a "force press". They cannot be used for the main interface of the Watch app. In the Simulator, a click and hold with the mouse will simulate a force press, and the animation will make it clear when you have done one, even in contexts where it doesn't do anything.
This was solution for me- Go to Hardware->Touch Pressure->Deep Press then try tap on watch simulator.
I have recently encountered this issue on a real device, although the menu was working as expected on the watch simulator. In my case, the problem was in SF Symbol that I've used as an image.
Everything was fixed after replacing it with an image from the assets catalogue.

How to customize a toolbar in Xcode 4?

Is there a way to customize toolbar in Xcode 4? Reorder buttons, remove default and add new? Also I want to turn off text under toolbar buttons, since I run Xcode 4 on 13" Macbook where every pixel is precious.
To turn off text underneath the buttons just cmd+click on the top right button (on the level with the traffic lights). This is a global thing.
The rest you're stuck with I'm afraid.
According to: http://pilky.me/view/16 toolbar customization is gone, and unlikely to return :(
As Elibud says toolbar customisation is no longer available, I use a 13" Macbook and, minimise them. I am running Xcode V3, it's a bit easier to see all the windows as you can move all the menus around and open Interface Builder separately.

Xcode 4 project opens, then hides folders

I just upgraded to Xcode 4, and I'm trying to open a project I created with the previous Xcode, but when I open it, after about 1 second, it hides all the folders and inline projects in the project navigator, and only shows the "resources" folder. Strange behavior. I can compile and run, but I can't edit my files from xcode any more.
Anyone else see this?
#haider I had the same issue with XCode 4.3, tried the above recipe, but it did not work for me. Here is the correct answer to prevent this from happening and get it to work right:
There's a tiny row of icons to the left of the search box under the left hand nav. The first of these is a '+' (to add a file). The icons following the add-a-file icon are actually filters that can be toggled on and off. The first of these looks like a clock, and is a filter to show only-recently-modified files, the second to show files-with-source-control status and so on. I must have accidentally picked the first icon after the '+' (show only recently-modified files) and therefore had the problem. The XCode UI preserves that pick even when you close the project so closing and re-opening does not alleviate the situation.
Don't know why it fixed, but it did. After closing down xcode and restarting several times, it ended up working ok again. Strange

Resources