1

在此处输入图像描述我能够在 iOS 7 上的以下方法中推送一个 newview 控制器,而相同的代码在 iOS 6 上不起作用。在 iOS 6 上,它推送视图,但导航栏显示在状态栏下方。看样子好难看。有人可以有任何想法。谢谢

已经检查:

UIImagePickerController 的 pushViewController 在导航栏后面放错了推送视图

- (void) imagePickerController:(UIImagePickerController *)picker
         didFinishPickingImage:(UIImage *)image
                   editingInfo:(NSDictionary *)editingInfo
{
    AddEffectViewController *addEffectViewController=[self.storyboard instantiateViewControllerWithIdentifier:@"AddEffectViewController"];
    addEffectViewController.originalImage=image;

    picker.navigationController.navigationBar.translucent = true;
    [picker setNavigationBarHidden:NO animated:YES];
    [picker pushViewController:addEffectViewController animated:YES];
}
4

2 回答 2

0

我和你建立我的照片编辑器一样,这样做为我解决了这个问题:

在您的 AddEffectViewController 中:

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}
于 2014-03-01T01:04:19.257 回答
0

隐藏导航栏

self.navigationController.navigationBarHidden = YES;
于 2014-03-01T06:38:15.863 回答