文章来源:淘论文网   发布者: 毕业设计   浏览量: 79



还可以点击去查询以下关键词:
[轻量级]    [评论]    [输入]    [定制]    [支持]    [多种]    [样式]    [轻量级评论输入定制框,支持多种样式]   

项目介绍:

轻量级评论输入框,支持多种样式,支持占位符设置等等!代码地址:https://github.com/CoderZhuXH/XHInputView效果

使用方法初始化 __weak typeof(self) weakSelf = self; /** 初始化并设置样式:支持InputViewStyleLarge、InputViewStyleDefault两种样式 */ self.inputView = [[XHInputView alloc] initWithStyle:InputViewStyleLarge]; /** 设置最大输入字数 */ self.inputView.maxCount = 50; /** 设置占位符 */ self.inputView.placeholder = @'请输入...'; /** 添加至视图 */ [self.view addSubview:self.inputView]; /** 发送按钮点击事件 */ self.inputView.sendBlcok = ^(NSString *text) { /** 隐藏输入框 */ [weakSelf.inputView hide]; NSLog(@'输入的文字:%@',text); }; 显示输入框 /** 显示输入框 */ [self.inputView show]; 代理方法<XHInputViewDelagete> /** XHInputView 将要显示 @param inputView inputView */ -(void)xhInputViewWillShow:(XHInputView *)inputView { /* //如果你工程中有配置IQKeyboardManager,并对XHInputView造成影响,请在XHInputView将要显示时将其关闭 [IQKeyboardManager sharedManager].enableAutoToolbar = NO; [IQKeyboardManager sharedManager].enable = NO; */ } /** XHInputView 将要影藏 @param inputView inputView */ -(void)xhInputViewWillHide:(XHInputView *)inputView{ /* //如果你工程中有配置IQKeyboardManager,并对XHInputView造成影响,请在XHInputView将要影藏时将其打开 [IQKeyboardManager sharedManager].enableAutoToolbar = YES; [IQKeyboardManager sharedManager].enable = YES; */ } 更多属性设置 /** 最大输入字数 */ @property (nonatomic, assign) NSInteger maxCount; /** 字体 */ @property (nonatomic, strong) UIFont * font; /** 占位符 */ @property (nonatomic, copy) NSString *placeholder; /** 占位符颜色 */ @property (nonatomic, strong) UIColor *placeholderColor; /** 输入框背景颜色 */ @property (nonatomic, strong) UIColor* textViewBackgroundColor; /** 发送按钮背景色 */ @property (nonatomic, strong) UIColor *sendButtonBackgroundColor; /** 发送按钮Title */ @property (nonatomic, copy) NSString *sendButtonTitle; /** 发送按钮圆角大小 */ @property (nonatomic, assign) CGFloat sendButtonCornerRadius; /** 发送按钮字体 */ @property (nonatomic, strong) UIFont * sendButtonFont;

论文开题报告

这里还有:


还可以点击去查询:
[轻量级]    [评论]    [输入]    [定制]    [支持]    [多种]    [样式]    [轻量级评论输入定制框,支持多种样式]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/3912.docx
  • 上一篇:模仿抖音Ap毕业设计p的ye m切换框架
  • 下一篇:地址,时间选择器(都已封装好了!)