Status Bar Touches
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)
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)
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.
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.
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.
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.
I wonder if there is any way to get access to lower level touch information, instead of going through the touch events.
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.
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.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| touches offset? | Jamie W | 11 | 10,192 |
Aug 18, 2011 10:23 AM Last Post: MattDiamond |
|
| How to get number of active touches? | Rasterman | 8 | 5,907 |
Apr 21, 2010 03:56 PM Last Post: longjumper |
|
| not getting touches for top 20 pixels | Rasterman | 10 | 5,584 |
Apr 8, 2010 01:00 AM Last Post: fattoh |
|
| Touches are slowing down game | Jamie W | 8 | 4,984 |
Mar 26, 2010 03:41 PM Last Post: Jamie W |
|
| Touches Lagging & Skipping | hippocoder | 0 | 1,646 |
Mar 8, 2010 09:20 AM Last Post: hippocoder |
|

