在iOS8.0之后,shouldAutorotate / supportedInterfaceOrientations错误

时间:2015-05-06 09:28:08

标签: objective-c storyboard xcode6 screen-rotation ios8.3

我的第一个UIViewcontroller

-(NSInteger) supportedInterfaceOrientations
{ return UIInterfaceOrientationMaskLandscape; }
-(BOOL) shouldAutorotate
{ return YES; }

and through present modally segue..

我的第二个UIViewController

-(NSInteger) supportedInterfaceOrientations
{ return UIInterfaceOrientationMaskPortrait; }
-(BOOL) shouldAutorotate
{ return YES; }

但是。我的第二个UIviewcontroller使错误SigAbrt !!!

错误消息

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason : [__NSPlaceholderArray initWithObjects:count:] attempt to insert nil object from object[0]

但如果我删除第二个UIViewController那个代码" supportedInterfaceOrientations"这个应用程序很好...

我怎么能旋转一些视图是肖像而另一个视图是风景......

我的故事板制作w:any / h:任何和模拟的指标:定位是推断的

enter image description here enter image description here enter image description here enter image description here

0 个答案:

没有答案