我有一个简单的xcode项目,只是从“主-详细应用程序”模板,为iPad。当设备处于纵向时,主视图被隐藏,当您在细节视图上向右滑动时,将显示主视图。现在,我想将右键手势识别器添加到详细视图中,如下所示:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self configureView];
UISwipeGestureRecognizer *gestureRecognizer