iPhone 5 (4") bottom toolbar not responding

前端 未结 5 543
礼貌的吻别
礼貌的吻别 2020-12-03 07:04

I\'m trying to modify an app to work with the new iPhone 5, 4\" screen. I\'ve added the new launch image, \"Default-568h@2x.png\". After that everything seemed good. Middle

相关标签:
5条回答
  • 2020-12-03 07:34

    I had the same problem and noticed that my window.frame.size.height was still 480.0.

    Solved this problem by enabling Full Screen at Launch for the MainWindow.xib file:

    Steps:

    1. Open MainWindow.xib
    2. Select the Window element
    3. Open the Attributes Inspector
    4. Under Window section, enable Full Screen at Launch
    0 讨论(0)
  • 2020-12-03 07:47

    My Project wasn't using MainWindow.xib. I added the following to viewDidLoad in View Controllers of all the screens:

    self.view.frame = [UIScreen mainScreen].bounds;
    
    0 讨论(0)
  • 2020-12-03 07:52

    There are two solution to this problem :

    1. If you are using MainWindow follow these steps :

      a. Select MainWindow.xib b. Select 'Full Screen at Launch' from Windows option available in Attributes Inspector.

    2. If your application doesn't contain MainWindow then just add 'Self.View.Frame = [UIScreen mainScreen].bounds' in ViewDidLoad.

    0 讨论(0)
  • 2020-12-03 07:57

    add

    self.window.frame = [UIScreen mainScreen].bounds;
    

    in this method:

    -(BOOL)application:(UIApplication *)application 
    didFinishLaunchingWithOptions:(NSDictionary*)options 
    

    in your %your app name%AppDelegate.m file

    0 讨论(0)
  • 2020-12-03 07:59

    I your project has MainWindow.xib then you must have to set all splash images in order to compatible you app for iPhone 5 display.

    0 讨论(0)
提交回复
热议问题