ios - How to prevent only one UIViewController from rotating while other can rotate? -


i have tab bar controller app 3 uiviewcontroller, done in storyboard.
device orientation set all, except upside down.

rotation supported, except 1 uiviewcontroller, should portrait.
tried with:

- (bool) shouldautorotate { return no; }  -(nsuinteger)supportedinterfaceorientations {     return uiinterfaceorientationportrait; } 

but when rotate get:

unable simultaneously satisfy constraints. @ least 1 of constraints in following list 1 don't want. try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints)

so how ?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -