Skip to content

JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面,可设置单排或双排显示,title不设置不显示title,如果想实现发送站内用户的功能,自己可以改一下代码

Notifications You must be signed in to change notification settings

iotjin/JhScrollActionSheetView

Repository files navigation

JhScrollActionSheetView

JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面
可设置单排或双排显示,title不设置不显示title
如果想实现发送站内用户的功能,自己可以改一下代码




Examples

  • Demo1
//带标题,双排
JhScrollActionSheetView *actionSheet = [[JhScrollActionSheetView alloc]initWithTitle:@"分享到" shareDataArray:self.shareArray otherDataArray:self.otherArray];
actionSheet.clickShareBlock = ^(JhScrollActionSheetView *actionSheet, NSInteger index) {
    NSLog(@" 点击分享 index %ld ",(long)index);
};
actionSheet.clickOtherBlock = ^(JhScrollActionSheetView *actionSheet, NSInteger index) {
    NSLog(@" 点击其他 index %ld ",(long)index);
};

[actionSheet show];
  • Demo2
//带标题,单排
 [JhScrollActionSheetView showShareActionSheetWithTitle:@"分享" shareDataArray:self.shareArray                            handler:^(JhScrollActionSheetView *actionSheet, NSInteger index) {
    NSLog(@" 点击分享 index %ld ",(long)index);                 
}]; 
  • Demo3
//不带标题,单排  
[JhScrollActionSheetView showShareActionSheetWithTitle:@"" shareDataArray:self.shareArray handler:^(JhScrollActionSheetView *actionSheet, NSInteger index) {
    NSLog(@"点击分享 index %ld ",(long)index);
}];

About

JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面,可设置单排或双排显示,title不设置不显示title,如果想实现发送站内用户的功能,自己可以改一下代码

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published