Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Binju

macrumors member
Original poster
Jan 31, 2010
65
0
I created a view for ipad in 1024x768. when I run the app , I cannot see the full view in the ipad simulator?

What I need to do?
 
What screen resolution are you running and can you explain the exact problem better?
 
Perhaps the orientation is wrong? If the iPad is in portrait orientation, then then view size needs to be 768x1024. Or the view origin is wrong, probably should be (0,0).

Also note that the status bar on top of the screen takes up 20 pixels, so take that into consideration when sizing your view.
 
Perhaps the orientation is wrong? If the iPad is in portrait orientation, then then view size needs to be 768x1024. Or the view origin is wrong, probably should be (0,0).

Also note that the status bar on top of the screen takes up 20 pixels, so take that into consideration when sizing your view.

The size of the simulator is not be 768x1024 know
 
Describe how you cannot see the entire view. How do you expect it to look?

It sounds like your view may not be the proper size. A view that is 1024x768 will only work in landscape orientation. If the iPad is in portrait orientation, you would not see the whole view of course.

And the size of the simulator screen is the same as the iPad. It may be scaled down, but as far as positioning your views goes, that doesn't make any difference.
 
Pls check the attachment

The xib file and the ipad simulator
 

Attachments

  • Screen shot 2010-04-19 at 10.48.17 AM.png
    Screen shot 2010-04-19 at 10.48.17 AM.png
    64 KB · Views: 88
  • Screen shot 2010-04-19 at 10.49.44 AM.png
    Screen shot 2010-04-19 at 10.49.44 AM.png
    99.2 KB · Views: 87
Ah I remember I came across this problem when I dabbled with the ipad application. I went back to my iphone application before I got this resolved. I haven't checked if they've fixed it in SDK 4.0.

Which SDK are you using?
 
I am using sdk 3.2

Yeah, that sounds like the version I had trouble with.

Jut quickly created a ipad project in SDK 4 with a button that went from side to side and it looks like it's resolved.

Try building your app in SDK 4.0.
 
Yeah, that sounds like the version I had trouble with.

Jut quickly created a ipad project in SDK 4 with a button that went from side to side and it looks like it's resolved.

Try building your app in SDK 4.0.

But its beta version na? Will it be create any problem when i installed?
 
Well, when Apple says "iPhone SDK 4 beta cannot be used for submitting applications to the App Store", I'm gonna err on the side of caution and follow their advice.

I found out the hard way that was true. They will not let you submit an app under any circumstances if you use the sdk beta 4 EVEN IF you select a previous iphone os to compile it to.

I wound up having to uninstall xcode then re-install 3.2 and then completely rewrite my code in that environment. The code I had written in the 4.0 beta using the 4.0 templates wouldn't work in 3.1.2 os under any circumstances. It kept crashing out.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.