iOS: optimze when updating cell do not cause size change, do not reload
This commit is contained in:
@@ -63,6 +63,11 @@ - (instancetype)init {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)setText:(NSString *)text {
|
||||
[super setText:text];
|
||||
self.placeholderLabel.hidden = self.text.length > 0;
|
||||
}
|
||||
|
||||
- (void)layoutSubviews {
|
||||
[super layoutSubviews];
|
||||
self.placeholderLabel.hidden = self.text.length > 0;
|
||||
|
||||
Reference in New Issue
Block a user