Code here:
[self.textView addObserver:self forKeyPath:@"contentSize" options:NSKeyValueObservingOptionNew context:nil];
observing method
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
NSLog(@"change %@", change);
}
Every time I typed in words in the textView, the method just get called even there is no change in contentSize. And there is no problem in iOS7.
What might cause this problem? It is a bug in UIKit?