ios - Accessing the Status Bar -


so, i'd receive touches status bar anywhere, view, app. specific views, home screens , root view controllers view of tab view controller.

so goal to: hold down status bar dismiss current view, button.

the reason why i'm using approach button because app making utility, functional apps within 1 app. therefore not want use space on navbar item display button.

other fissures nice, swipe left/right or double tap, holding down. i've seen alternatives using uiscrollview , use - scrollstotop method. hmm not looking for.

hope can you.

when tap top area, has 44 height, event triggered.

- (void)viewdidload{     uitapgesturerecognizer *tapgesture = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(navigationback:)];     [self.view addgesturerecognizer:tapgesture]; }    - (void)navigationback:(uitapgesturerecognizer *)tapgesture {     cgpoint p = [tapgesture locationinview:self.view];     if (cgrectcontainspoint(cgrectmake(0, 0, self.view.frame.size.width, 44), p)) {         nslog(@"this put navigation event");     } } 

Comments