1

I just added iPhone 5 compatibility to my iPhone application. To do this, I added copies of every view with new iPhone 5 dimensions and made the initiation process of the view controller choose by the size of the screen. Unfortunately, the method touchesBegan:withEvent: is not called when the touch occurs under the 480 pixel line. When you move it to above the line, it is suddenly called. This has been bugging me for a while. Thanks!

Stuart N. Thomas
  • 466
  • 5
  • 10
  • 1
    Take a look at this [question 1](http://stackoverflow.com/q/12501976/767730) and [question 2](http://stackoverflow.com/q/12678864/767730). Most probably your window is not getting resized. – Anupdas Jun 02 '13 at 16:55
  • This is what solved it. The window I thought was being called up was the right size but the actual window that was being called up was a different window that I had created in the past and had the old dimensions. Thanks! – Stuart N. Thomas Jun 04 '13 at 12:30
  • Make sure to give some upvotes to original questions and answers :) – Anupdas Jun 04 '13 at 12:32

2 Answers2

0

You have probably a view in your responder chain that is only 480 px height. It might be the view itself or any parent.

There is a nice debugger for something like that: http://sparkinspector.com/ .. which shows the complete view hierarchy.

Bastian
  • 10,403
  • 1
  • 31
  • 40
0

Double check that your MainWindow.xib file has "Full Screen at Launch" checked!

self.name
  • 2,341
  • 2
  • 17
  • 18