首页 > 移动平台 > 详细

IOS 背景模糊化

时间:2015-03-26 19:42:28      阅读:342      评论:0      收藏:0      [点我收藏+]
 UIView *effectView = [[UIView alloc] initWithFrame:CGRectMake(10, 70, 300, 100)];
    effectView.tag = 100;
    effectView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:effectView];
    
    UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
    visualEffectView.frame = effectView.bounds;
    [effectView addSubview:visualEffectView];
   以为是IOS8的方法,所以最好加上判断
  [[[UIDevice currentDevice] systemVersion] floatValue] >=8.0
 

IOS 背景模糊化

原文:http://www.cnblogs.com/mlgbya/p/4369520.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!