GoodsCollectionViewCell * cell = (GoodsCollectionViewCell *)[btn superview];
NSIndexPath * indexPath = [self.collectionview indexPathForCell:cell];
在ios7.1的模拟器上运行完这句代码就奔溃了。报的错误是: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView _layoutAttributes]: unrecognized selector sent to instance 0x7bec0c10'
怎么能让collection的那个方法不走呢。各位大神帮帮忙。
NSIndexPath * indexPath = [self.collectionview indexPathForCell:cell];
在ios7.1的模拟器上运行完这句代码就奔溃了。报的错误是: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView _layoutAttributes]: unrecognized selector sent to instance 0x7bec0c10'
怎么能让collection的那个方法不走呢。各位大神帮帮忙。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货