-(void)imageFullScreen:(UITapGestureRecognizer*)sender{
modalCon = [[UIViewController alloc] init];
modalCon.view.backgroundColor=[UIColor blackColor];
modalCon.view.userInteractionEnabled=YES;
UIImageView *imageView = [[UIImageView alloc] initWithFrame:modalCon.view.frame];
imageView.contentMode = UIViewContentModeScaleAspectFit;
imageView.image = self.mImageView.image;
[modalCon.view addSubview:imageView];
UITapGestureRecognizer *modalTap =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissModalView:)];
[modalCon.view addGestureRecognizer:modalTap];
[self.delegate showFullScreen:modalCon];
return;
}
方法showFullScreen:modalCon将显示modalViewController(modalCon)并显示触摸图像,它将被忽略。但是当图像全屏时,导航栏没有显示(图像上方和下方都有黑条),如下所示:
但是我希望iOS照片应用程序在点击库中出现导航栏的任何照片以及带有多个按钮的工具栏时会出现相同的行为,编辑,返回,共享,删除选项如下所示:{{3 }}
答案 0 :(得分:0)
您可以随时尝试https://github.com/mwaterfall/MWPhotoBrowser 迈克尔瀑布的致谢
答案 1 :(得分:0)