ipad - UIInterface Orientation Issue -
i have following code allows me rotate specific view landscape, once goes landscape not rotate portrait? appreciated.
@implementation submenusviewcontroller @synthesize submenusview; @synthesize mainmenudata; // designated initializer. override if create controller programmatically , want perform customization not appropriate viewdidload. - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil { if (self = [super initwithnibname:nibnameornil bundle:nibbundleornil]) { // custom initialization submenusview=[[submenusview alloc] initwithframe:[uisettings rectoffullscreen:uiinterfaceorientationportrait]]; } return self; }
//override allow orientations other default portrait orientation. - (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { // return yes supported orientations return yes;//(interfaceorientation == uiinterfaceorientationportrait); }
thanks help!
try shouldautorotate method :
-(bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { return yes; }
Comments
Post a Comment