UICollectionViewCell's座標を に対する相対座標から に対する相対座標UICollectionViewに変換することは可能superviewですか? これまでのところUICollectionViewCell's、に触れたときに座標を変換できませんでしたsuperview。これが私がこれまでに試したことです:
- (void)collectionView:(UICollectionView *)collectionView
didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
UICollectionViewCell *cell =
[collectionView dequeueReusableCellWithReuseIdentifier:@"CollectionViewCell"
forIndexPath:indexPath];
CGRect frame = CGRectMake(0.0,
0.0,
cell.frame.size.width,
cell.frame.size.height);
frame.origin = [cell convertPoint:cell.frame.origin
toView:self.view];
}
ではなく、ビュー上のセルの位置から始まる新しいフレームを作成したいと思いますUICollectionView。どんな助けでも大歓迎です。