草庐IT

sportsValue

全部标签

ios - Objective C IOS prepareForSegue 如何获取分配给下一个 View Controller 的按钮的 int 变量

所以我有一个CollectionView,它使用核心数据动态生成一组按钮。我已经完成了为按钮分配按钮和值的部分。-(UICollectionViewCell*)collectionView:(UICollectionView*)collectionViewcellForItemAtIndexPath:(NSIndexPath*)indexPath{staticNSString*identifier=@"Cell";[self.collectionViewregisterNib:[UINibnibWithNibName:@"CollectionViewCell"bundle:nil]fo