# SGCrayfish **Repository Path**: HQF_ios/SGCrayfish ## Basic Information - **Project Name**: SGCrayfish - **Description**: Custom View【标签、引导页、ActionSheet】 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SGCrayfish * 本框架中的 SGTagsView 设计来源于 [SGPagingView](https://github.com/kingsic/SGPagingView) 框架中的 SGPageTitleView ## 内容介绍 * SGTagsView(标签) * SGGuidePageView(引导页) * SGActionSheet(微信、微博样式) ## Installation * 1、CocoaPods 导入 pod 'SGCrayfish', '~> 0.1.2' * 2、下载、拖拽 “SGCrayfish” 文件夹到工程中 ## 代码介绍 #### SGTagsView 的使用(详细使用, 请参考 Demo) ``` 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); }; ``` #### SGActionSheet 的使用(详细使用, 请参考 Demo) ``` SGActionSheetConfigure *asc = [SGActionSheetConfigure configure]; SGActionSheet *as = [[SGActionSheet alloc] initWithOtherTitles:@[@"确定"] configure:asc]; as.otherTitleClickBlock = ^(NSInteger index) { NSLog(@"index - - %ld", index); }; [as show]; ``` ### QQ音乐、美团、天猫以及SGTagsView标签效果图展示
![](https://github.com/kingsic/Useless/blob/master/SGRichView/SGTagsView_QQ.png) ![](https://github.com/kingsic/Useless/blob/master/SGRichView/SGTagsView_MT.png) ![](https://github.com/kingsic/Useless/blob/master/SGRichView/SGTagsView_Tmall.png) ![](https://github.com/kingsic/Useless/blob/master/SGRichView/SGTagsView_mine.png)