Status Bar Touches

Member
Posts: 21
Joined: 2008.10
Post: #1
I suspect that my touchesBegan messages are getting lost because the touch occurs where the status bar should be, even though I set it to hidden in my info.plist file.

Do I need to do anything else to have the touches in the status bar area sent through to my view?


(I saw this question was asked by someone else in a earlier thread, but it was skipped because of the NDA)
Quote this message in a reply
Member
Posts: 21
Joined: 2008.10
Post: #2
I did some more testing.

With my finger starting offscreen, my application does not register a slow drag originating from the top of the screen, but if I start from the bottom or the sides it works.

So for example, if I start my finger on the reciever, and drag down onto the screen, nothing happens. But if I start on the home button and drag up onto the screen, it creates the touch event.

I still think this has something to do with the status bar.
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #3
I've noticed this as well but I'm not convinced there's anything you can do about it - it seems to behave that way in all applications.
Quote this message in a reply
Member
Posts: 21
Joined: 2008.10
Post: #4
that's disappointing.

I wonder if there is any way to get access to lower level touch information, instead of going through the touch events.
Quote this message in a reply
Moderator
Posts: 133
Joined: 2008.05
Post: #5
It's a bug. The statusBarFrame.size goes to 0, 0 when you hide it and is 320, 20 before you hide it. This says to me that there is a bug. Even a UIApplication subclass doesn't get the event.

edit: There is a status bar object somewhere that inherits from UIResponder. It's private, though. It does receive events because touching the status bar will scroll up a full screen table view. You might be able to hack around it by overriding scrollToRowAtIndexPath:atScrollPosition: and having a hidden instance of that UITableView subclass on your screen, but I'm not going to prmise that works.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  touches offset? Jamie W 11 11,665 Aug 18, 2011 10:23 AM
Last Post: MattDiamond
  How to get number of active touches? Rasterman 8 7,558 Apr 21, 2010 03:56 PM
Last Post: longjumper
  not getting touches for top 20 pixels Rasterman 10 6,439 Apr 8, 2010 01:00 AM
Last Post: fattoh
  Touches are slowing down game Jamie W 8 5,723 Mar 26, 2010 03:41 PM
Last Post: Jamie W
  Touches Lagging & Skipping hippocoder 0 2,034 Mar 8, 2010 09:20 AM
Last Post: hippocoder