【发布时间】:2011-01-27 23:55:08
【问题描述】:
我把它放在 loadView 中,它可以工作:
CGRect navFrame = [[UIScreen mainScreen] applicationFrame];
navFrame.size.height -= self.navigationController.navigationBar.frame.size.height;
UIImageView *imageView = [[UIImageView alloc] initWithFrame:navFrame];
但是有没有像 applicationFrame 这样的变量,它可以让 applicationFrame 减去 UINavigationBar 的高度?
【问题讨论】:
标签: iphone uiviewcontroller autoresizingmask