I have a custom UITableViewCell with 7 subzones. One of them is a type of activity, so in order to find it and stop it, I do something like this:
NSArray *subviews=[cell subviews]; NSLog(@"Subviews count: %d",subviews.count); for (UIView *view in subviews) { NSLog(@"CLASS: %@",[view class]);
In iOS6 , Subviews: 7 counts, and one of them is a kind of activity. But in iOS7, counting Subviews: 1 and [view class] returns a UITableViewCellScrollView . Tried, NSArray *subviews=[cell.superview subviews]; and NSArray *subviews=[cell.contentview subviews]; but in vain.
Any suggestions?
source share