Saturday 17 August 2013

Subviews of UITableView?

Subviews of UITableView?

I have an UITableView with five costum UITableViewCells. If the TableView
scrolls all Cells should perform the same method.
Here is the code:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
if(self.newsViewTable == scrollView) {
for(int i = 1; i < [self.newsViewTable.subviews count]; i++) {
[[self.newsViewTable.subviews objectAtIndex:i]
hideSocialMediaBar];
}
}
}
But if I scoll there comes an error!
*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[UIImageView hideSocialMediaBar]:
unrecognized selector sent to instance 0x8a9ea90'
I don't now why the error deals with an UIImageView? There is just one
direct subview of the UITableView and this is the Cell! What is wrong? Why
it is an UIImageView?

No comments:

Post a Comment