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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -