UIView display issue in iOS 7

前端 未结 5 2009
长发绾君心
长发绾君心 2020-12-10 09:23

I already make the app for ios 6 using xib. All the views are shown perfectly same as xib. But in IOS 7, due to the status Bar the views are moves to up & there is a bla

5条回答
  •  再見小時候
    2020-12-10 09:37

    Steps to Fix the status bar issue:

    1. Change the "view as" option to "IOS 7 and later" and uncheck the use auto layout option from file inspector.

    2. Go to size inspector and increase 20 pixel of origin y value to all controls added in the selected xib.

    3. And increase the delta value of y to -20 for all the controls added in the selected xib.

    And run in both IOS 6 and IOS 7 issues should be fixed. (Make sure the y origin and delta values are perfectly handled as i mentioned.)

    For clear information See my answer in this link : https://stackoverflow.com/a/19025547/1545180

    For your reference

    enter image description here

提交回复
热议问题