我正在以这种方式创建视图控制器:
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"PhotoViewControlleriPhone" bundle:nil];
UIViewController *vc = [sb instantiateInitialViewController];
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:vc animated:NO];
vc.view.frame = CGRectMake(imageView.frame.origin.x, imageView.frame.origin.y + 64, imageView.frame.size.width, 200.000000);
vc.view.layer.cornerRadius = 10; // this value vary as per your desire
vc.view.clipsToBounds = YES;
viewcontroller 不是全屏的,所以还是可以看到之前的。我希望能够看到它,但锁定它。就像你在使用 ios facebook 分享时,你会看到背景,但它会变暗,你无法与之互动。我怎样才能做到这一点?