2014-12-19 10 views

답변

0

질문이 명확하지 않습니다.

하지만 난 이해 것과

,

-(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 

} 
UIScreenEdgePanGestureRecorgnizer 시도