Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-15-2009, 11:22 AM   #1 (permalink)
sandpjain
Registered Member
 
Join Date: Oct 2009
Posts: 4
sandpjain is on a distinguished road
Default Unwanted upward 20 pixel shift in iPhone screen

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
sandpjain is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,283
Threads: 93,960
Posts: 402,310
Top Poster: BrianSlick (7,971)
Welcome to our newest member, bkdbkd
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:55 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.