我的第一个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:任何和模拟的指标:定位是推断的