Skip to content

Commit

Permalink
修复bug #9—第一次创建的时候,已经配置了text但是在调用[self refreshPlaceholderView];的时候,并没有…
Browse files Browse the repository at this point in the history
…检查text是否有值.
  • Loading branch information
王振标 committed Nov 16, 2017
1 parent 5e7da3a commit c7d2c44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WZBTextView-demo/WZBTextView/UITextView+WZB.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ - (void)refreshPlaceholderView {
self.wzb_placeholderView.font = self.font;
self.wzb_placeholderView.textAlignment = self.textAlignment;
self.wzb_placeholderView.textContainerInset = self.textContainerInset;
self.wzb_placeholderView.hidden = (self.text.length > 0 && self.text);
}
}

Expand Down

0 comments on commit c7d2c44

Please sign in to comment.