【发布时间】:2013-08-30 07:51:42
【问题描述】:
我正在为我的应用程序使用 JASidePanels(Facebook 菜单样式)。
LeftPanel 是我的菜单 (tableView),而我显示内容的 CenterPanel 有一个 collectionView。
当我在中心 collectionView 中点击一个项目时,我还想选择与我的 LeftPanel 中被点击的项目相同的 indexPath,即菜单。
我试过这样做,但没有成功。
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
// Other codes ...
LeftMenuViewController *leftMC = [[LeftMenuViewController alloc] init];
[leftMC.tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:0];
}
我该怎么办?
感谢您的帮助!
【问题讨论】:
标签: ios uitableview uicollectionview didselectrowatindexpath