You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this methods call everytime when change contentSize (when we scroll), it kill performance when calculate label size and set text to title or subtitle label.
this methods call everytime when change contentSize (when we scroll), it kill performance when calculate label size and set text to title or subtitle label.
(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
if([keyPath isEqualToString:@"contentOffset"])
[self scrollViewDidScroll:[[change valueForKey:NSKeyValueChangeNewKey] CGPointValue]];
else if([keyPath isEqualToString:@"contentSize"]) {
[self layoutSubviews];
}
else if([keyPath isEqualToString:@"frame"])
[self layoutSubviews];
}
The text was updated successfully, but these errors were encountered: