拖动uiview以推送viewcontroller

时间:2016-04-21 06:54:32

标签: ios uiview uinavigationcontroller

我想将视图B推送到导航控制器拖动视图A中插入的uiview!像Whatsapp一样显示单个邮件传递信息!有什么想法吗?

1 个答案:

答案 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.");
}