TSModalViewController自定义模态视图控制器隐藏逻辑
TSModalViewController自定义模态视图控制器,在呈现的视图之外点击时隐藏(在FormSheet中呈现)。\
\
用法:\
// 让你的 ViewController 继承自 TSModalViewController\
#import \"TSModalViewController.h\"\
@interface ToShowModalViewController : TSModalViewController @end\
\
-
(IBAction)didClickedGoButton:(id)sender {\
ToShowModalViewController *viewController = [[ToShowModalViewController alloc] init];\
viewController.modalPresentationStyle = UIModalPresentationFormSheet;\
[self presentViewController:viewController animated:YES completion:nil];\
}
用户评论