Latest 0.0.1
Homepage https://github.com/yaonimingsanqian/GWCollectonView
License MIT
Platforms ios 7.0, requires ARC
Dependencies GWTool, AsyncImageView
Frameworks UIKit
Authors

功能

  1. 这个lib提供一个简单的应用整理夹,效果图如下:

github

github

用法


 NSArray *urls = [NSArray arrayWithObjects:@"http://pp.myapp.com/ma_icon/0/icon_10910_1468916742/96",@"http://pp.myapp.com/ma_icon/0/icon_93301_1469780396/96",@"http://pp.myapp.com/ma_icon/0/icon_10555_1469186507/96",@"http://pp.myapp.com/ma_icon/0/icon_12146495_1469586035/96",@"http://pp.myapp.com/ma_icon/0/icon_6633_1468340230/96",@"http://pp.myapp.com/ma_icon/0/icon_5832_1465992040/256",@"http://pp.myapp.com/ma_icon/0/icon_10297682_1469759844/256",@"http://pp.myapp.com/ma_icon/0/icon_242690_1468391652/256",@"http://pp.myapp.com/ma_icon/0/icon_1194437_1469587698/256", @"http://pp.myapp.com/ma_icon/0/icon_5080_1469686941/96",@"http://pp.myapp.com/ma_icon/0/icon_207027_1470101645/256",@"http://pp.myapp.com/ma_icon/0/icon_208247_1469706102/256",@"http://pp.myapp.com/ma_icon/0/icon_1119040_1468483409/256",nil];

NSArray *appName = [NSArray arrayWithObjects:@"微信",@"万能钥匙",@"QQ读书",@"大闹天宫",@"QQ",@"大姨妈",@"baby",@"保卫萝卜",@"美装",@"淘宝",@"xx", @"eee",@"mmm",nil];
collection = [[CollectionView alloc] initWithFrame:CGRectMake(20, 220, 55, 55) apps:urls names:appName];
__weak __typeof(collection) weakSelf = collection;
[collection setShowBigClick:^{
    [weakSelf showBig];
 }];    
 [collection setAppClick:^(int idex) {
     NSLog(@"%d",idex);
 }];
 [self.view addSubview:collection];
 [self.view addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap:)]];

 -(void)tap:(UIGestureRecognizer*)tap
 {
    [collection showSmall];
 }

安装

源码安装

  1. 下载demo直接集成源码即可。

cocopods 安装

  1. pod search GWCollectonView.
  2. 编辑你的Podfile:pod ‘GWCollectonView’, ‘~> 0.0.1’
  3. 执行:pod install –verbose –no-repo-update

注意

  1. 这个demo只提供一种思路,大家可以举一反三.

版本更新记录

Latest podspec

{
    "name": "GWCollectonView",
    "version": "0.0.1",
    "summary": "u4e00u4e2au7b80u5355u7684u5e94u7528u5939",
    "description": "u4e00u4e2au7b80u5355u7684u5e94u7528u5939uff0cu9ed8u8ba4u4e00u98759u4e2au56feu6807uff0cu7ed9u5927u5bb6u63d0u4f9bu4e00u79cdu7b80u5355u7684u601du8def",
    "homepage": "https://github.com/yaonimingsanqian/GWCollectonView",
    "license": "MIT",
    "authors": {
        "zhaoguowei": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/yaonimingsanqian/GWCollectonView.git",
        "tag": "0.0.1"
    },
    "source_files": "GWCollectonView/GWCollectonView/class/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "dependencies": {
        "GWTool": [
            "~> 0.0.3"
        ],
        "AsyncImageView": [
            "~> 1.6"
        ]
    }
}

Pin It on Pinterest

Share This