标签: iphone ios objective-c
我有以下代码,应该将视图控制器保持在PORTRAIT模式,但它不能解决问题。我该怎么办?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); }