CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];
CGRect rectInSuperview = [tableView convertRect:rectInTableView toView:[tableView superview]];
在collectionView
//獲取父類view
UIView *v = [aBtn superview];
//獲取cell
THYCProductListCell *cell = (THYCProductListCell *)[vsuperview];
//獲取cell在當前collection的位置
CGRect cellInCollection = [_collectionViewconvertRect:cell.frametoView:_collectionView];
//獲取cell在當前屏幕的位置
CGRect cellInSuperview = [_collectionViewconvertRect:cellInCollection toView:self.view];