自定义的webviewcontroller 被push的时候 如果父控制器的导航栏隐藏。将会出现少64像素的问题。这里得到了解决
关于多, 少64像素的问题:,应该可以解决
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
if ( self.navigationController.navigationBarHidden == YES )
{
[self.view setBounds:CGRectMake(0, -20, self.view.bounds.size.width, self.view.bounds.size.height)];
}
else
{
self.edgesForExtendedLayout = UIRectEdgeNone;
}
}