我有这个警告:Incompatible pointer types assigning to 'CustomCell *' from 'UITableViewCell *
-(void)method:(id)sender{
indexPath = [NSIndexPath indexPathForRow:[sender tag] inSection:0];
CustomCell *customCell = [self.tableView cellForRowAtIndexPath:indexPath];
}
" CustomCell"是UITableViewCell!
的子类。该守则运作良好,但我想删除此警告。