Universal App - events fire in iPhone XIB but not iPad XIB
Hey, I've been banging my head on this for a couple of days...anybody have any ideas?
I have a Universal App, which I upgraded in XCode. It runs in iPhone and iPad.
I have a separate xib file for each device. I actually made a copy of my project and did an upgrade in Xcode to create two apps, and XCode created the iPad XIB's for me, which I then copied into my universal app project, and added to my project (which, for some reason XCode did not make copies of all the XIBs, and only gave me an additional mainwindow.xib).
I had to update the MainWindow.xib and MainWindow-ipad.xib to get to the root controller correctly, and updated the info.plist to point to the NSMainNibFile-iPad key.
I changed the code to use a call out a different XIB file, depending on which device it is running on, and all this is working fine.
The problem is that the iPad version does not respond to any touches on the screen (other then navigation controller back to root view). Even a navigation item on the right has no response ONLY ON THE iPAD. Running on the iPhone works fine (which has a different xib for the smaller screen, but the viewcontroller is the same).
I have checked for "User Interactivity Enabled" and that is checked in the both versions. I have compared the settings side-by-side with the regular and the iPhone version and they all seem to line up.
I have UILabel controls that get updated in the iPad version. I have checked in the debugger, and the instance values appear valid (they are not null).
Does anybody have any ideas? I am grateful for anything...
Have you solved this yet? I've been banging my head against the wall for 2 hours trying to figure this out! ARG!
Quote:
Originally Posted by paulperry
Hey, I've been banging my head on this for a couple of days...anybody have any ideas?
I have a Universal App, which I upgraded in XCode. It runs in iPhone and iPad.
I have a separate xib file for each device. I actually made a copy of my project and did an upgrade in Xcode to create two apps, and XCode created the iPad XIB's for me, which I then copied into my universal app project, and added to my project (which, for some reason XCode did not make copies of all the XIBs, and only gave me an additional mainwindow.xib).
I had to update the MainWindow.xib and MainWindow-ipad.xib to get to the root controller correctly, and updated the info.plist to point to the NSMainNibFile-iPad key.
I changed the code to use a call out a different XIB file, depending on which device it is running on, and all this is working fine.
The problem is that the iPad version does not respond to any touches on the screen (other then navigation controller back to root view). Even a navigation item on the right has no response ONLY ON THE iPAD. Running on the iPhone works fine (which has a different xib for the smaller screen, but the viewcontroller is the same).
I have checked for "User Interactivity Enabled" and that is checked in the both versions. I have compared the settings side-by-side with the regular and the iPhone version and they all seem to line up.
I have UILabel controls that get updated in the iPad version. I have checked in the debugger, and the instance values appear valid (they are not null).
Does anybody have any ideas? I am grateful for anything...
I've fixed this!!! Open up your new XIB file and go to Inspector for your MainWindow object.. and make sure "Full Screen at Launch" is checked. So frustrating!
I've fixed this!!! Open up your new XIB file and go to Inspector for your MainWindow object.. and make sure "Full Screen at Launch" is checked. So frustrating!
I Create account on that website to say THANK YOU to you
I was scratching my head for last 15 hours.
hats off
Excellent