首页 > 系统 > iOS > 正文

iOS模态出一个半透明的ViewController

2019-11-07 23:26:54
字体:
来源:转载
供稿:网友
UIViewController * vc = [[UIViewController alloc]init];    vc.definesPResentationContext = YES;     vc.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:.4];    vc.modalPresentationStyle = UIModalPresentationOverCurrentContext;    [self presentViewController:vc animated:YES completion:nil];
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表