-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
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
fetchedResultsController.fetchObjects is not empty, but [FRC objectAtIndexPath:indexPath] return nil? #81
Comments
I have no idea. Can you run demo project directly? |
OK I found the solution. In RBQObjectCacheObject.m file + (RLMObject *)objectInRealm:(RLMRealm *)realm
forCacheObject:(RBQObjectCacheObject *)cacheObject
{
if (cacheObject.primaryKeyType == RLMPropertyTypeString) {
return [realm objectWithClassName:cacheObject.className forPrimaryKey:cacheObject.primaryKeyStringValue];
}
else if (cacheObject.primaryKeyType == RLMPropertyTypeInt) {
NSNumber *numberFromString = @(cacheObject.primaryKeyStringValue.integerValue);
return [realm objectWithClassName:cacheObject.className forPrimaryKey:numberFromString];
}
else {
@throw ([self unsupportedPrimaryKeyTypeException]);
}
} I change |
Ah, nice catch! |
@zenghaojim33 can you submit PR with this change? |
Sure. |
I checked my code in RBQObjectCacheObject.m as longLongValue like here
}` but i still take this issue. Can you help me! |
I used this library in my project and it works well on 64bit devices, but this bug happens on iPhone5 and iPhone4s. Basically I just copy codes from the demo project. Any idea what may cause this ? thanks in advance.
The text was updated successfully, but these errors were encountered: