你好我的视图问题我添加到sharedapplciation这里是我添加视图的方式:
if (!thingLocator) {
thingLocator = [[AWThingLocatorController alloc] init];
}
//show the view
[[[UIApplication sharedApplication] keyWindow] addSubview:thingLocator.view];
它给我的结果是这样的:
正如您所看到的那样,视图的顶部和底部正在被切割,这是
答案 0 :(得分:0)
所以这就是我如何修复它,看来该视图是在(0,0)绘制并忽略状态栏...
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
self.view.frame = [[UIScreen mainScreen] applicationFrame];
}