uisplitviewcontroller - How to set the view in a landscape mode in iPad? -


i'm working ipad. want app fix @ lanscape mode only. app contains split view controller , above split view controller placed login screen.

after user provides necessary username , password, login view should removed split view controller gets opened. works good. want login screen set @ landscape mode. tried in many ways problem still not solved. placed uiorientaion key value lanscape in plist. no use.

- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {      //uiinterfaceorientationlandscapeleft;     // overriden allow orientation.  //  return uiinterfaceorientationislandscape(interfaceorientation);     return yes;     //return (interfaceorientation == uiinterfaceorientationlandscapeleft); } 

i tried in way no result.

[[uidevice currentdevice] setorientation:uiinterfaceorientationlandscapeleft]; 

also in way in viewdidload,

by using way im able set app in landscape mode view not rotated landscape.the login view fixed @ potrait mode.

in nib file,if fix view in lanscape,the split view's,rootviewcontroller appears on on e side , in detailviewcontroller of splitviewcontroller,this login screen opened in potrait mode.....

any appreciated in advance

i found solution problem.here coding:

[viewcontroller *newdetailviewcontroller = [[viewcontroller alloc] initwithnibname:@"viewcontroller" bundle:nil]; [window addsubview:newdetailviewcontroller.view];     [window addsubview:anotherviewcontroller.view]; [window bringsubviewtofront:newdetailviewcontroller.view];

in way should add subviews delegate.after fix view in landscape auto rotation method in view controllers..thats it


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -