-(void) collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
NSDictionary *event = [self.events objectAtIndex:(indexPath.section*2 + indexPath.row)];
NSLog(@"select event name :%@“,[even objectForKey:@"name"]);
}
如上代码:(UICollectionView *)collectionView是什么意思?(NSIndexPath *)indexPath是什么意思?
self.events objectAtIndex:(indexPath.section*2 + indexPath.row 中间的空格表示什么意思?新人,没人带没看懂,希望可以详细一点的,谢谢了
{
NSDictionary *event = [self.events objectAtIndex:(indexPath.section*2 + indexPath.row)];
NSLog(@"select event name :%@“,[even objectForKey:@"name"]);
}
如上代码:(UICollectionView *)collectionView是什么意思?(NSIndexPath *)indexPath是什么意思?
self.events objectAtIndex:(indexPath.section*2 + indexPath.row 中间的空格表示什么意思?新人,没人带没看懂,希望可以详细一点的,谢谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货