项目介绍:
多功能标签展示视图,满足绝大多数app需求
极其便利的创建方式,灵活配置各属性需求
- 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.singleSelectedBlock = ^(SGTagsView * _Nonnull tagsView, NSString *tag, NSInteger index) {
- NSLog(@"%@ – – %ld", tag, index);
- };
复制代码下载地址