我有一个带有此代码的标签栏控制器
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
//NSLog(@"object type %@" ,nil);
if([[self navigationController ] isKindOfClass:[UINavigationController class]])
if([[[self navigationController] visibleViewController] isKindOfClass:[SLImageViewController class]])
return YES;
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
我需要 SLImageViewController 类的任何实例来旋转,但其他都不需要。我已经完成了我能想到的所有事情,比如将 return YES 添加到我的 SLImageViewController 和其他修复中。
谁能告诉我我做错了什么?