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
{{ message }}
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
(NSInteger)subRow
{
id indexpath = [NSIndexPath class];
id subRowObj = objc_getAssociatedObject(indexpath, SubRowObjectKey);
return [subRowObj integerValue];
}
(void)setSubRow:(NSInteger)subRow
{
id subRowObj = [NSNumber numberWithInteger:subRow];
id indexpath = [NSIndexPath class];
objc_setAssociatedObject(indexpath, SubRowObjectKey, subRowObj, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
My solution but i don't know whether it is the best
When i use in IOS7. in here objc_setAssociatedObject will crash.
The text was updated successfully, but these errors were encountered: