0
我想推一個視圖B導航控制器拖動視圖A插入uiview!像WhatsApp一樣顯示單個郵件傳遞信息!有任何想法嗎?拖動uiview推視圖控制器
我想推一個視圖B導航控制器拖動視圖A插入uiview!像WhatsApp一樣顯示單個郵件傳遞信息!有任何想法嗎?拖動uiview推視圖控制器
//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.");
}
是的,但我怎麼能推視圖控制器?如果我以正常的方式推動它開始ios動畫打開視圖,我失去了拖動! –