I have a test app for iOS that is built without any nib/xib files. It runs, the UIViewController is made root and displayed on the screen with one button, but that button is not clickable. Also, a UITapGestureRecognizer placed on the UIViewController’s view property doesn’t ever fire. I can’t figure out why, so I placed my project in dropbox, hoping someone here knows what the problem is.
The project is simple, just a UIViewController template minus the nib files, the main and plist files edited to reflect this, and then a button and gesture recognizer added. Nuthin fires:
You need to tell your window what its frame is:
Just ask UIScreen for the appplication frame will do, just like the code above.