自定义sheetActionView-Q
<h1>样式展示</h1>
<p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/3a5ec3b7ff63820fe59e838117726017?showdoc=.jpg" alt="" /></p>
<h1>控件代码参数说明</h1>
<pre><code>- (instancetype)initWithDataArray:(NSArray *)dataArr withSelect:(NSInteger )select withSelectColor:(UIColor* __nullable)selectColor;
;/* dataArr:展示文字数据源 select:选中的index selectColor:选中的颜色 */
selectBlock/*选中了那个*/
</code></pre>
<h1>代码引用</h1>
<pre><code>#import "LLUIKit_SheetSelectView.h"</code></pre>
<pre><code> NSInteger index = 1;
LLUIKit_SheetSelectView*sheetSelectView = [[LLUIKit_SheetSelectView alloc]initWithDataArray:@[@"相机",@"相册"] withSelect:index withSelectColor:nil];
sheetSelectView.selectBlock = ^(NSString *nameStr, NSInteger index) {
};
[self presentViewController:sheetSelectView animated:YES completion:nil];</code></pre>
<h1>代码使用样例</h1>
<pre><code> NSInteger index = 1;
LLUIKit_SheetSelectView*sheetSelectView = [[LLUIKit_SheetSelectView alloc]initWithDataArray:@[@"相机",@"相册"] withSelect:index withSelectColor:nil];
sheetSelectView.selectBlock = ^(NSString *nameStr, NSInteger index) {
};
[self presentViewController:sheetSelectView animated:YES completion:nil];</code></pre>