I use storyboard and have lot of viewcontroller. I'm facing issue on Orientation. I have tried different ways which has provided stackoverflow. But i did't get any answer. Is there any issue on Xcode 6.0 with ios 8?
My implementation process:
step 1:
I have added below code in Newscontroller.m
-(BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
- (NSUInteger)supportedInterfaceOrientationsForWindow:(UIWindow *)self{
return UIInterfaceOrientationMaskPortrait;
}
Now question is ... i need disable orientation specific view controllers like keep only portrait. Any one having idea?
Aucun commentaire:
Enregistrer un commentaire