This repository was archived by the owner on Sep 6, 2019. It is now read-only.
Commit 59d2a93 1 parent 3ade7f6 commit 59d2a93 Copy full SHA for 59d2a93
File tree 3 files changed +5
-19
lines changed
RKOTools/RKOControl/RKOTextView
3 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 3
3
自己平时写的一个小工具库,上传到GitHub中且支持CocoaPods,方便自己使用。不断更新完善中。
4
4
5
5
<p align =" center " >
6
- <a href =" " ><img src =" https://img.shields.io/badge/pod-v1.3.1 -brightgreen.svg " ></a >
6
+ <a href =" " ><img src =" https://img.shields.io/badge/pod-v1.3.2 -brightgreen.svg " ></a >
7
7
<a href =" " ><img src =" https://img.shields.io/badge/ObjectiveC-compatible-orange.svg " ></a >
8
8
<a href =" " ><img src =" https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg " ></a >
9
9
<a href =" https://github.com/rakuyoMo/RKOTools/blob/master/LICENSE " ><img src =" https://img.shields.io/badge/license-MIT-green.svg?style=flat " ></a >
Original file line number Diff line number Diff line change 9
9
Pod ::Spec . new do |s |
10
10
11
11
s . name = "RKOTools"
12
- s . version = "1.3.1 "
12
+ s . version = "1.3.2 "
13
13
s . summary = "One of your own tool libraries"
14
14
s . description = <<-DESC
15
15
One of your own tool libraries
Original file line number Diff line number Diff line change @@ -103,20 +103,6 @@ - (void)setUp {
103
103
self.enablesReturnKeyAutomatically = YES ;
104
104
}
105
105
106
- #pragma mark 懒加载控件
107
-
108
-
109
- // 懒加载清除按钮
110
- // - (UIButton *)clearBtn {
111
- //
112
- // if (!_clearBtn && _clearBtnMode != RKOTextFieldViewModeNever) {
113
- // // 初始化清除按钮。
114
- // NSLog(@"2");
115
- //
116
- // }
117
- // return _clearBtn;
118
- // }
119
-
120
106
#pragma mark - 系统方法
121
107
// 绘制TextView边框
122
108
- (void )drawRect : (CGRect )rect {
@@ -451,12 +437,12 @@ - (void)createClearButton {
451
437
452
438
// 图片路径
453
439
// 为通过copy文件夹方式获取图片路径的宏
454
- #define kZLPhotoBrowserSrcName (file ) [@" ClearBtnImg.bundle" stringByAppendingPathComponent: file]
440
+ #define RKOTextViewSrcName (file ) [@" ClearBtnImg.bundle" stringByAppendingPathComponent: file]
455
441
// 为通过cocoapods下载安装获取图片路径的宏
456
- #define kZLPhotoBrowserFrameworkSrcName (file ) [@" Frameworks/RKOTools.framework/ClearBtnImg.bundle" stringByAppendingPathComponent: file]
442
+ #define RKOTextViewFrameworkSrcName (file ) [@" Frameworks/RKOTools.framework/ClearBtnImg.bundle" stringByAppendingPathComponent: file]
457
443
458
444
// 设置图片
459
- UIImage *img = [UIImage imageNamed: kZLPhotoBrowserSrcName (@" clear_btn_RKOTextView.png" )]?:[UIImage imageNamed: kZLPhotoBrowserFrameworkSrcName (@" clear_btn_RKOTextView.png" )];
445
+ UIImage *img = [UIImage imageNamed: RKOTextViewSrcName (@" clear_btn_RKOTextView.png" )]?:[UIImage imageNamed: RKOTextViewFrameworkSrcName (@" clear_btn_RKOTextView.png" )];
460
446
self.imgSize = img.size ;
461
447
[self .clearBtn setImage: img forState: UIControlStateNormal];
462
448
You can’t perform that action at this time.
0 commit comments