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.
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.
Comments
Post a Comment