NSIndexPath等结构体的比较

1.NSIndexPath的比较方式,需要将结构体内部的属性一一对比。比如,
if ((indexPath.section == self.selectIndexPath.section) &&(indexPath.row == self.selectIndexPath.row)) {
  [cell setBtnSelected:YES]; }
else {
  [cell setBtnSelected:NO]; }
原文地址:https://www.cnblogs.com/cchHers/p/8712455.html