Tuesday, 15 June 2010

rotation - How to setting orientation for each ViewController in Tabbed Application in iOS7? -



rotation - How to setting orientation for each ViewController in Tabbed Application in iOS7? -

in tabbed application have 2 view.

i want prepare firstview portrait , seccondview can rotate portrait , landscape.

i implement code below in firstviewcontroller.

- (nsuinteger)supportedinterfaceorientation { homecoming uiinterfaceorientationmaskportrait; }

the code in secondviewcontroller is

- (nsuinteger)supportedinterfaceorientation { homecoming uiinterfaceorientationmaskallbutupsidedown; }

but when rotate phone, setting have no working.

cloud can tell how that.

you need subclass uinavigationcontroller , uitabbarcontroller. take @ questions, same shouldautorotate, supportedinterfaceorientations , preferredinterfaceorientationforpresentation not work expected in ios 7

ios7 rotation

No comments:

Post a Comment