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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -