Latest 2.0.1
Homepage https://github.com/jianghao562/JHSheetViewCustom
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry
Authors

仿微信sheetView,一款相当实用的控件!

引入pod

pod 'JHSheetActionView'

1.使用block

 JHSheetActionView *sheetView= [[JHSheetActionView alloc] init];
    [email protected][@[@"标题1",@"标题2,@"标题3"],@[@"取消"]];
     sheetView.callBackCellForRowIndex = ^(NSInteger index) {
      NSLog(@"选择了第%zd个item",index);
    };
    [sheetView showView];

2.使用delegate

 #import "JHSheetActionView.h"
 @interface ViewController ()<JHSheetActionViewDelegate>
   JHSheetActionView *sheetView= [[JHSheetActionView alloc] init];
    [email protected][@[@"标题1",@"标题2"],@[@"取消"]];
    sheetView.delegate=self;
    [sheetView showView];   
}
#pragma mark - SheetDelegate
-(void)didSelectCellForRowIndex:(NSInteger)index{
      NSLog(@"选择了第%zd个item",index);    
    }
@end

image

Latest podspec

{
    "name": "JHSheetActionView",
    "version": "2.0.1",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "It is an imitation WeChat controls can quick import project engineering",
    "homepage": "https://github.com/jianghao562/JHSheetViewCustom",
    "license": "MIT",
    "authors": {
        "JiangHao": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jianghao562/JHSheetViewCustom.git",
        "tag": "2.0.1"
    },
    "source_files": "JHSheetActionView",
    "requires_arc": true,
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This