Skip to main content

UIviewcontroller size issue in IPhone?



I have a UIviewcontroller in a navigation based project, to which i am pushing some views as a result of some button action.





When I first load this view, its size is showing (0,0,320,416) in the viewwillappear method. But, if you run it again, its size is showing (0,0,320,460) in the same viewwillappear method. My view is seems to be resizing when you load it again.





Due to that I have so many problems in the pushed view. Can anybody help me please?


Comments

  1. (0,0,320,416) is - 20 for status bar and - 44 for navigation bar and (0,0,320,460) is just the -20 for the status bar, perhaps your navigation bar is translucent?.

    ReplyDelete
  2. the difference between two sizes is 44 .. which is the height of the navigation bar ,, i think your problem in the navigation controller or you are set it translucent.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?