iOS8自带模糊效果

2015-07-03 0 467
iOS8自带模糊效果
   typedef NS_ENUM(NSInteger, UIBlurEffectStyle) {  
    UIBlurEffectStyleExtraLight,  
    UIBlurEffectStyleLight,  
    UIBlurEffectStyleDark  
} NS_ENUM_AVAILABLE_IOS(8_0);  
  
  
    UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];  
    UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];  
    blurEffectView.frame = self.imageView.bounds;  
    [self.imageView insertSubview:blurEffectView atIndex:0];  
   

遇见资源网 objective-c iOS8自带模糊效果 http://www.ox520.com/17987.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务