公共组件汇总

公共组件使用方法


弹框modal样式5--Qin

<h1>样式展示</h1> <p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/4d290f6dfe06c714bf0dd430070b869f?showdoc=.jpg" alt="" /></p> <h1>控件代码参数说明</h1> <pre><code>@property(nonatomic,strong) UILabel * titleLabel; /*标题*/ @property(nonatomic,strong) UITableView * listView;/*信息列表*/ @property(nonatomic,strong) UIView * theBackgroundView;/*背景*/ @property(nonatomic,strong) UIButton * leftButton;/*左按钮*/ @property(nonatomic,strong) UIButton * rightButton;/*右按钮*/ @property(nonatomic,strong) NSArray * dataSoure;/*数据信息*/ @property(nonatomic,copy) LLUIKit_AlerVListSelectButtonBlock buttonBlock;/*按钮回调*/ -(instancetype)initWithDataSoure:(NSArray*)dataSoure withTitleString:(NSString*)titleString withLeftButtonTitle:(NSString*)leftTitle withRightButtonTitle:(NSString*)rightTitle;/*初始化方法 dataSoure --- 数据源 @[@{@"title":@"标题",@"content":@"内容"}]这种格式 titleString --- 标题 leftTitle --- 左按钮标题 rightTitle --- 右按钮标题 */ -(void)showViewAction; /*展示动作*/</code></pre> <h1>代码引用</h1> <pre><code>#import "LLUIKit_AlerVListView.h"</code></pre> <pre><code>NSArray*dataSoure = @[]; LLUIKit_AlerVListView*alertListView = [[LLUIKit_AlerVListView alloc]initWithDataSoure:dataSoure withTitleString:@"标题" withLeftButtonTitle:@"取消" withRightButtonTitle:@"退出"]; [self presentViewController:alertListView animated:YES completion:nil]; </code></pre> <h1>代码使用样例</h1> <pre><code>NSArray*dataSoure = @[@{@"title":@"标题1",@"content":@"内容1"}, @{@"title":@"标题1",@"content":@"内容1asda"}, @{@"title":@"标题1",@"content":@"内容1eeeeeeee"}, @{@"title":@"标题eee1",@"content":@"内容1rffffffffff"}]; LLUIKit_AlerVListView*alertListView = [[LLUIKit_AlerVListView alloc]initWithDataSoure:dataSoure withTitleString:@"标题" withLeftButtonTitle:@"取消" withRightButtonTitle:@"退出"]; [self presentViewController:alertListView animated:YES completion:nil]; </code></pre>

页面列表

ITEM_HTML