We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这个方法的实现有问题,在响应函数中删除监听的source,这个方法不应该重写,程序员要监听当然会实现这个方法,而没有这个方法,程序也不至于崩溃,望采纳
The text was updated successfully, but these errors were encountered:
@naniqingkuang 你说的对,这个时候不回导致crash,实现是多余的。
Sorry, something went wrong.
No branches or pull requests
{
NSString key = [NSString stringWithFormat:@"%@_%p",NSStringFromClass([observer class]),observer];
[self.kvoMapLock lock];
id obj = [self.kvoMap objectForKey:key];
if ([obj isKindOfClass:[NSMutableArray class]]) {
for (id source in obj) {
if ([source isKindOfClass:[WTKVOResource class]]) {
if ([(WTKVOResource)source resource] == nil && [(WTKVOResource*)source key] == path) {
[obj removeObject:source];
[self.kvoMapLock unlock];
return YES;
}
}
}
}
[self.kvoMapLock unlock];
return NO;
}
这个方法的实现有问题,在响应函数中删除监听的source,这个方法不应该重写,程序员要监听当然会实现这个方法,而没有这个方法,程序也不至于崩溃,望采纳
The text was updated successfully, but these errors were encountered: