0
我有一系列UITableView以水平ScrollView显示。在每个tableview中,每个TableViewCell由2个代表详细视图的缩略图图块组成。我正在使用touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
来捕获其中一个瓦片已被挖掘。从那里,我将一个详细视图推送到NavigationController并显示不同的屏幕。这种交互在加载初始视图时起作用。但是,如果您快速向上或向下滚动任何桌面视图,touchesBegan事件将停止触发。在此期间没有收到内存警告。touchesBegan事件停止大量滚动后触发
这里是我使用的接收水龙头视图控制器内的代码(tableviewcell内部的小瓦:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
NSLog(@"Touched received on ArticleTileViewController");
ArticleViewController *vc = [[ArticleViewController alloc] initWithArticleData:self.articleDataArray];
ProjectAppDelegate *appDelegate = (ProjectAppDelegate *)[UIApplication sharedApplication].delegate;
[appDelegate.navController pushViewController:vc animated:YES];
}
编辑:我也试图与touchesEnded同样的事情,相同的行为结果。
我失去了一些东西在这里?