添加刷卡识别到您的视图或实现代码如下
UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(goToNextView)];
[swipeLeft setDirection:UISwipeGestureRecognizerDirectionLeft];
[self.view addGestureRecognizer:swipeLeft]; //Add to the view or tableview or whatever
添加方法
- (void)goToNextView
{
YourViewController *vc =
[self.storyboard instantiateViewControllerWithIdentifier:@"yourViewControllerIdendifier"];
[self.navigationController pushViewController:vc animated:YES];
}
做同样的回去,而是用推的,使用弹出
纠正我,如果即时通讯错误,但UITableViewCell没有详细信息视图,但细节文本标签 –
不,对不起。我的意思是当我点击每个项目时,我可以看到一个新的DetailViewController – roxeman3