在使用代理方法的时候,使用对象对比方法 isEqual:
例如:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
if([tableView isEqual:leftTableView])
return self.recruitArr.count;
}else {
}
在使用代理方法的时候,使用对象对比方法 isEqual:
例如:
本文标题:一个页面使用两个tableview,代理方法中如何区分
本文链接:https://www.haomeiwen.com/subject/feiayttx.html
网友评论