CocoaPicker --仿 QQ 图片选择器
如何使用
self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;//半透明
CocoaPickerViewController *transparentView = [[CocoaPickerViewController alloc] init];
transparentView.delegate = self;
transparentView.modalPresentationStyle = UIModalPresentationOverFullScreen;
transparentView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
transparentView.view.frame=self.view.frame;
transparentView.view.backgroundColor=[[UIColor blackColor] colorWithAlphaComponent:.5];
transparentView.view.superview.backgroundColor = [UIColor clearColor];
[self presentViewController:transparentView animated:YES completion:nil];
}];
截图 0
截图 1
