首页 > 系统 > iOS > 正文

四行代码搞定iOS毛玻璃效果

2019-11-09 14:32:48
字体:
来源:转载
供稿:网友
UIview *shareView = [[UIView alloc]initWithFrame:CGRectMake(0,0,200,100)]; [self.view addSubview:shareView]; UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *effectview = [[UIVisualEffectView alloc]initWithEffect:effect]; effectview.frame = shareView.bounds; [shareView addSubview:effectview];
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表