2014-12-19 100 views

回答

0

你的問題還不夠清楚。

但是從我的理解,嘗試UIScreenEdgePanGestureRecorgnizer

-(void)viewDidLoad{ 
[super viewDidLoad]; 

UIScreenEdgePanGestureRecognizer *gesture = [[UIScreenEdgePanGestureRecognizer alloc]  initWithTarget:self action:@selector(handleGesture:)]; 

gesture.edges = UIRectEdgeTop; //you can change it to whatever edge you want 

[yourView addGestureRecognizer:gesture]; 

} 
-(void)handleGesture:(UIScreenEdgePanGestureRecognizer*)arg { 
//handle the gesture here 

}