1

My status bar will never be hidden throughout my entire app. Is there a simple way to detect it when it is tapped?

TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
  • 1
    I don't think you can get touch events for touching the status bar, but i might be mis-understanding you. You want to get touch events for touching the 20 pixel height bar at the very top of the screen? – A'sa Dickens Jan 13 '16 at 22:02
  • Yes, I want to get the tap event for that. – TIMEX Jan 13 '16 at 22:18
  • Off the top of my head with no research, you can add a button on top of the window that might receive the touches for that area.... – A'sa Dickens Jan 13 '16 at 22:21
  • I want to use the status bar because it's always on top of every view controller – TIMEX Jan 13 '16 at 22:31
  • @A'saDickens what about this? http://stackoverflow.com/questions/3753097/how-to-detect-touches-in-status-bar – TIMEX Jan 13 '16 at 22:36
  • That creates a touchable square for your entire screen that happens to be in the same place as the status bar, which works for what you want. Sounds good :3 – A'sa Dickens Jan 14 '16 at 12:35

0 Answers0