Xcode6 自带毛玻璃效果

UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];

UIVisualEffectView *effectview = [[UIVisualEffectView alloc] initWithEffect:blur];

effectview.frame = CGRectMake(0,0, 320,320);

[self.view addSubview:effectview];

 

posted @ 2015-01-07 21:42  苏糊  阅读(229)  评论(2编辑  收藏  举报