0

We are started to convert our iOS 6 application into iOS 7. I tried to create one screen for my application. I used Xib file for design, I designed the screen from top to bottom with UILabel and UIButtons. When I tried to run the app in Simulator it showing differently from xib design. In simulator the designs are came down and bottom UILabel has hide.

I got the self.view.frame from viewDidLoad() was (0,64,32,504). But, it is showing correctly in viewDidAppear (0,0,320,568).

How can I resolve this issue in Xcode 5? Could you please help me to solve this.Looking forward your reply. Thanks.

4

1 に答える 1

0

-viewDidLoad のフレームは、その時点でデバイス用にサイズ変更されていないため、依存することはできません。-viewDidAppear を待つ必要があります。

于 2013-10-22T15:31:44.817 に答える