Skip to content

silence0201/FlurryCover

Repository files navigation

FlurryCover

简单封装下拉模糊效果
img

使用说明

安装

手工导入:

将项目目录下的FlurryCover目录导入项目中 SIFlurryCover:UIImageView子类,实现模糊效果 UIScrollView+SIFlurryCover:UIScrollView的分类,添加头部下拉模糊

pod安装
pod 'FlurryCover', '~> 1.0'

导入投文件

#import "UIScrollView+SIFlurryCover.h"

添加下拉模糊头部

// tableView添加
[tableView addFlurryCoverWithImage:[UIImage imageNamed:@"cover"]];
// scrollView添加
[scrollView addFlurryCoverWithImage:[UIImage imageNamed:@"cover"]] ;

注意事项

  • 需要在视图的dealloc中移除,需要调用以下方法

      -(void)dealloc{
      	[scrollView removeFlurryCoverView] ;
      }
    
  • 不要使用高质量图片,会增加内存的占用

FlurryCover

FlurryCover is available under the MIT license. See the LICENSE file for more info.