8
是否總是從主線程調用observeValueForKeyPath
?是否始終從主線程調用observeValueForKeyPath?
我記錄電話與
-(void) observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
change:(NSDictionary *)change
context:(void *)context
{
NSLog(@"KVO: isMainThread %d", [NSThread isMainThread]);
// ...
}
,似乎每次都被打印1
,但我無法找到的文檔的任何保證。任何人都可以證實這是事實嗎?
太棒了,謝謝 – bcattle 2014-09-05 23:04:03