- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (self.delegate&&[self.delegate respondsToSelector:@selector(changeCatoryMessage:andIndex:andMessage:)]) {
[_delegate changeCatoryMessage:self andIndex:indexPath andMessage:_dataArray[indexPath.row] ];
}
}
判断代理方法是否为空
最新推荐文章于 2023-09-08 11:34:36 发布