公共组件汇总

公共组件使用方法


弹框modal样式2--Qin

<h1>样式展示</h1> <p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/d27b8ce93d1d29523d98f62ed3695b83?showdoc=.jpg" alt="" /> <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/85ae62a03795d66c632646b934cb7b77?showdoc=.jpg" alt="" /> <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/a460473db74fada37bc88fbdeda05cb0?showdoc=.jpg" alt="" /> <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/0b971177b48b431b1997dc646e942356?showdoc=.jpg" alt="" /></p> <h1>控件代码参数说明</h1> <pre><code>四种样式:通过标题 信息内容 左右按钮的标题传值,进行样式控制</code></pre> <pre><code>titleLabel/*标题内容View*/ contentLabel /*信息内容view*/ leftButton /*左边辅助按钮*/ rightButton /*右边主操作*/ buttonActionBlock/*按钮回调*/ -(instancetype)initWithAlerType:(LLUIKit_AlerViewModalType)modalType withTitleString:(NSString* __nullable)titleString withMessContent:(NSString* __nullable)messContent withLeftButtonTitle:(NSString*)leftButtonTitle withRightButtonTitle:(NSString* __nullable)rightButtonTitle; /* modalType -- 样式(一个按钮还是两个按钮) titleString -- 标题(可为空) messContent -- 信息内容(可为空) leftButtonTitle --左按钮 rightButtonTitle -- 右按钮(可为空) */ </code></pre> <h1>代码引用</h1> <pre><code>#import "LLUIKit_AlerViewModal.h"</code></pre> <pre><code> LLUIKit_AlertViewModal*alerViewModal = [[LLUIKit_AlertViewModal alloc]initWithAlerType:LLUIKit_AlerViewModalType_ButtonWithBackgroundColor withTitleString:@"标题" withMessContent:@"警告框内容请注意查看" withLeftButtonTitle:@"取消" withRightButtonTitle:@"确定"]; alerViewModal.buttonActionBlock = ^(NSInteger index) { NSLog(@"%ld",index); }; [self presentViewController:alerViewModal animated:YES completion:nil ]; </code></pre> <h1>代码使用样例</h1> <blockquote> </blockquote>

页面列表

ITEM_HTML