【发布时间】:2011-10-30 06:38:52
【问题描述】:
可能重复:
iPhone orientation
根据 iPad 所处的方向,我需要设置表格视图的背景或将其移除,因为它不适用于弹出框。
我试过了,但没有运气:
if( [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeLeft ){
self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]];
self.tableView.backgroundColor = [UIColor clearColor];
NSLog(@"test");
也许有更好的方法?看看table是master还是popover,然后设置背景?
【问题讨论】:
标签: objective-c cocoa-touch ipad uitableview uiviewcontroller