我想将视图B推送到导航控制器拖动视图A中插入的uiview!像Whatsapp一样显示单个邮件传递信息!有什么想法吗?
答案 0 :(得分:0)
//use swipe gesture recognizer
UISwipeGestureRecognizer *gestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeHandler:)];
[gestureRecognizer setDirection:(UISwipeGestureRecognizerDirectionRight)];
[self.view addGestureRecognizer:gestureRecognizer];
-(void)swipeHandler:(UISwipeGestureRecognizer *)recognizer {
NSLog(@"Swipe received.");
}