SGTagsViewConfigure *configure = [SGTagsViewConfigure configure];
NSArray *tags = @[@"iPhone 8", @"iPhone 8P", @"iPhone X", @"iPhone XR", @"iPhone XS", @"iPhone XS Max"];
SGTagsView *tagsView = [SGTagsView tagsViewWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 50) configure:configure];
tagsView.tags = tags;
[self.view addSubview:tagsView];
tagsView.singleSelectBlock = ^(SGTagsView * _Nonnull tagsView, NSString *tag, NSInteger index) {
NSLog(@"%@ - - %ld", tag, index);
};
SGActionSheetConfigure *asc = [SGActionSheetConfigure configure];
SGActionSheet *as = [[SGActionSheet alloc] initWithOtherTitles:@[@"确定"] configure:asc];
as.otherTitleClickBlock = ^(NSInteger index) {
NSLog(@"index - - %ld", index);
};
[as actionSheet];