uiinterfaceorientation - iphone for Orientation -
possible duplicate:
how force screen orientation in specific view controllers?
hello
i want set orientation in 1 particular view how can that. andbody have example that. used
-(void)onuideviceorientationdidchangenotification:(nsnotification*)notification{     uiviewcontroller *tvc = self.navigationcontroller.topviewcontroller;     uideviceorientation orientation = [[ uidevice currentdevice ] orientation ];     tabbarcontroller.view.hidden = yes;     // switch if need (seem multiple notifications on device)     if( orientation != [[ uiapplication sharedapplication ] statusbarorientation ] ){         if( [ tvc shouldautorotatetointerfaceorientation: orientation ] ){             [ self rotateinterfacetoorientation: orientation ];         }     } } but done whole application , want done in 1 screen please reply thank you
on particula view controller put
- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {     // return yes supported orientations     return (interfaceorientation == uiinterfaceorientationportrait); } this potrait other u can wise
Comments
Post a Comment