Skip to content

Commit

Permalink
支持pod
Browse files Browse the repository at this point in the history
  • Loading branch information
WZBbiao committed Mar 13, 2017
1 parent 6fe4157 commit 167eb07
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions UITextView-WZB.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
Pod::Spec.new do |s|

s.name = "UITextView-WZB"

s.version = "1.0.0"

s.summary = "Three big functions for system UITextView."

s.homepage = "https://github.com/WZBbiao/UITextView-WZB"

s.license = "MIT"
s.author = "王振标"

s.author = "王振标"

s.platform = :ios, "8.0"

s.source = { :git => "https://github.com/WZBbiao/UITextView-WZB.git", :tag => s.version }
s.source_files = "UITextView-WZB/**/*.{h,m}"
s.exclude_files = "Classes/Exclude"

s.source_files = "WZBTextView-demo/WZBTextView/*.{h,m}"

end
1 change: 1 addition & 0 deletions WZBTextView-demo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ - (void)test1 {
self.textView.hidden = NO;
self.textView.placeholder = @"i love you";
self.textView.maxHeight = 100.05;
self.textView.placeholderColor = [UIColor redColor];

}

Expand Down
2 changes: 1 addition & 1 deletion WZBTextView-demo/WZBTextView/UITextView+WZB.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ - (NSString *)placeholder
- (void)setPlaceholderColor:(UIColor *)placeholderColor
{
// 如果有placeholder值才去调用,这步很重要
if (self.placeholderExist) {
if (!self.placeholderExist) {
NSLog(@"请先设置placeholder值!");
} else {
self.placeholderView.textColor = placeholderColor;
Expand Down

0 comments on commit 167eb07

Please sign in to comment.