File tree Expand file tree Collapse file tree
sample-code/apps/TestApp/Test App 2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,10 +68,21 @@ - (void)viewDidLoad
6868 [computeSumButton setAccessibilityIdentifier: @" ComputeSumButton" ];
6969 [answerLabel setAccessibilityIdentifier: @" Answer" ];
7070 [locationStatus setAccessibilityIdentifier: @" locationStatus" ];
71+
72+ UISwipeGestureRecognizer * swipe =[[UISwipeGestureRecognizer alloc ]initWithTarget:self action: @selector (swipeUp: )];
73+ swipe.direction = UISwipeGestureRecognizerDirectionUp;
74+ [self .view addGestureRecognizer: swipe];
75+ [swipe release ];
7176
7277 computeSumButton.titleLabel .text = NSLocalizedString(@" main.button.computeSum" , @" Compute Sum button" );
7378}
7479
80+ -(void )swipeUp : (UISwipeGestureRecognizer*)gestureRecognizer
81+ {
82+ [secondArg resignFirstResponder ];
83+ }
84+
85+
7586- (void )logLocationAuthFromTimer : (NSTimer *)timer
7687{
7788 [self logLocationAuth ];
You can’t perform that action at this time.
0 commit comments