Unable to start my application in full screen on iPhone 6.0 Simulator Retina 4 Inch

我是研究僧i 提交于 2019-11-30 01:56:49
onegray

Make sure that key window has proper size. Workaround is to set proper frame: [window setFrame:[[UIScreen mainScreen] bounds]].

Update:
It is difficult to guess where is the problem without having the source code. I've created simple app stub to test interface orientation for iPhone4/iPhone5. I just created new "Single View Application", added some subviews to the root view, and added "Defaults" images. I did it in Xcode 4.3.2 without any extra features of Xcode 4.5. And app automatically stretches its screen to proper size (for both portrait/landscape orientations).

I hope this will help you but not sure that you will got touch effect in full screen, So you have to check for full touch for your application.

Step 1: Click On Project from Navigation shown in image and click on missing file

Step 2: In second image click on Add

Now run project your project will run in Full iPhone 5 screen or simulator.!

I had the same issue of part of the screen not responding to user interaction. Selecting the "Full Screen at launch" option on the MainWindow.xib fixed it for me.

No matter what I did, I could not get my app fullscreen.

But after I added a file "Default-568@2x.png to my app. Now all the xib's run full screen. You can quickly test this by making a new app in XCode and copying the the black png that was created.

If you use XCode 6.1 try this solution (for projects without full image set):

  1. Project -> Target -> General -> App Icons and Launch Images -> Launch Screen file
  2. Choose xib for first screen.
user1834011

did you try this?

iOS Simulator > Hardware > Device > iPhone(Retina 4-inch)

i just run into the same problem and this is how i solved.

How are you adding the main viewController to the window? Just adding the view as a subview isn't supported any more in iOS6.

Here's an except from an article on my blog about making apps work on the iPhone 5 screen size.

Use window.rootViewController to add your initial view

First up, if you're building your initial views in code make sure you add your initial view to the window with window.rootViewController rather than the old way of simply adding the view as a subview. If you don't do this, autorotating will not work at all for your app under iOS 6.

Here's an example:

navigationController = [[UINavigationController alloc] initWithRootViewController: myRootVC];
//[window addSubview:[navigationController view]]; Don't do this!
window.rootViewController = navigationController; // Do this instead!

More at http://pervasivecode.blogspot.co.uk/2012/09/making-apps-work-on-iphone-5-screen-size.html

Delete App on simulator by LongPress-ing and re-run.

This works for me, after 4 inch retina adjustments. Everything was auto-resized the way I stitch-up in IB.

Please add launch screen for application.

diadyne

We ran into a similar issue on an app that was created back in the iOS 6 days when testing on iOS 8.

The fix for us was setting the "Hidden" flag on MainWindow.xib.

This is how we found out about the fix here.

The same was happening to me. I was trying to make a video splash screen, and since I can't control the time the splash screen is shown, and was therefore unable to show the full video, I had to make a fake splash screen, which was just a controller that was shown first and then removed. That controller's view was not being shown as fullscreen no matter what I tried. In the end, I found out it was happening because I had no splash image.

Solution: Add splash screens to your project (even if they are just black images), and the full screen problem should be fixed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!