关于多, 少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;
}
}
- (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;
}
}