hacker
hacker

Reputation: 8957

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?

Upvotes: 0

Views: 117

Answers (2)

Malek_Jundi
Malek_Jundi

Reputation: 6160

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.

Upvotes: 1

Oscar Gomez
Oscar Gomez

Reputation: 18488

(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?.

Upvotes: 2

Related Questions