ios - view considers navigation bar only after rotation -


i have simple uiscrollview

uiscrollview *mainscrollview = [[uiscrollview alloc] initwithframe:cgrectzero]; [self.view addsubview:mainscrollview];  [mainscrollview mas_makeconstraints:^(masconstraintmaker *make) {     make.edges.equalto(self.view); }]; 

when view loaded , shown, part of uiscrollview appears under navigation bar. after rotation view considers navigation bar , pins view bottom.

http://i.stack.imgur.com/sg1lu.png http://i.stack.imgur.com/bdwrw.png

how can make view consider navigation bar beginning?

to start uiscrollview @ bottom of uinavigationbar suggest set adjust scroll view insets property , setting extend edges property well. needful changes of below property per requirement.

enter image description here


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -