I've used Interface Builder to create a .xib file, in which I've put a UIButton at the very bottom of the screen. That's how I want it. But when I run the program in the iPhone simulator, the button is shifted upwards by about 20 pixels, whereas I want it at the very bottom. In fact, the whole screen is shifted upwards by about 20 pixels.
If I create a new iPhone application from scratch on my system, then I don't have this problem.
But I am creating my application by extending a tutorial I found on the web (at
iPhone Tutorial - Multiple XIB files on Vimeo - it's an excellent tutorial on creating an application with multiple xib files, if you're interested).
In the tutorial, there is a "SecondViewController" (of type UIViewController), "SecondView" (of type UIView), and SecondView.xib files - and the "second view" functionality does not have the upward shifting problem. I've created a "ThirdViewController", "ThirdView" , and ThirdView.xib" along exactly the same lines as the "second view" stuff, but the "third view" when I run it in the simulator gives me this mysterious screen shifting upwards problem.
I will greatly appreciate any hints to the solution.
Thanks,
Sandeep