Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Commit 59d2a93

Browse files
committed
整理RKOTextView代码
1 parent 3ade7f6 commit 59d2a93

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
自己平时写的一个小工具库,上传到GitHub中且支持CocoaPods,方便自己使用。不断更新完善中。
44

55
<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>
77
<a href=""><img src="https://img.shields.io/badge/ObjectiveC-compatible-orange.svg"></a>
88
<a href=""><img src="https://img.shields.io/badge/platform-iOS%208.0%2B-ff69b5152950834.svg"></a>
99
<a href="https://github.com/rakuyoMo/RKOTools/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat"></a>

RKOTools.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Pod::Spec.new do |s|
1010

1111
s.name = "RKOTools"
12-
s.version = "1.3.1"
12+
s.version = "1.3.2"
1313
s.summary = "One of your own tool libraries"
1414
s.description = <<-DESC
1515
One of your own tool libraries

RKOTools/RKOControl/RKOTextView/RKOTextView.m

+3-17
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,6 @@ - (void)setUp {
103103
self.enablesReturnKeyAutomatically = YES;
104104
}
105105

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-
120106
#pragma mark - 系统方法
121107
// 绘制TextView边框
122108
- (void)drawRect:(CGRect)rect {
@@ -451,12 +437,12 @@ - (void)createClearButton {
451437

452438
// 图片路径
453439
// 为通过copy文件夹方式获取图片路径的宏
454-
#define kZLPhotoBrowserSrcName(file) [@"ClearBtnImg.bundle" stringByAppendingPathComponent:file]
440+
#define RKOTextViewSrcName(file) [@"ClearBtnImg.bundle" stringByAppendingPathComponent:file]
455441
// 为通过cocoapods下载安装获取图片路径的宏
456-
#define kZLPhotoBrowserFrameworkSrcName(file) [@"Frameworks/RKOTools.framework/ClearBtnImg.bundle" stringByAppendingPathComponent:file]
442+
#define RKOTextViewFrameworkSrcName(file) [@"Frameworks/RKOTools.framework/ClearBtnImg.bundle" stringByAppendingPathComponent:file]
457443

458444
// 设置图片
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")];
460446
self.imgSize = img.size;
461447
[self.clearBtn setImage:img forState:UIControlStateNormal];
462448

0 commit comments

Comments
 (0)