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

fireshot91

macrumors 601
Original poster
Jul 31, 2008
4,721
1
Northern VA
So, this app I'm working on consists of a main-screen with a tableview

Now, everything works fine on an iPhone simulator, but on the iPad simulator, the last couple of rows (and the right side of the screen), doesn't respond to touch. Sort of like an iPhone-sized screen is the only thing that can touch it, and it's from the top left corner to about the middle of the screen.

If I turn the app to landscape, the responsive-part of the screen is again from the top left corner (portrait-wise) to the middle, so only the right half of the screen is responsive. Sort of like there's an iPhone-sized touch-input area in the same spot, no matter the orientation.


Any ideas? I think I explained it correctly..

Also, the orientation command returns YES, so it is able to go landscape.
 
No, I don't think so.

Sorry, I'm kind of new to iPhone development, and as far as I can tell, there's no size specified for anything.
 
So you have an IPHONE app, but you want it UNIVERSAL for IPHONE too?
Kinda messed there, not 100% sure what your exact goal is, so can determine the error.
You have a seperate XIB for the iPad or?
 
So you have an IPHONE app, but you want it UNIVERSAL for IPHONE too?
Kinda messed there, not 100% sure what your exact goal is, so can determine the error.
You have a seperate XIB for the iPad or?



No, I have just a default iPad application, the whole screen fills up on the iPad,but the only interactive portion the iPhone-superimposed-onto-an-iPad area.


Like:

[---------------------------]
|______* ------------------|
|______* -----------------|
| _____ * -----------------|
|---------------------------|
|---------------------------|
|---------------------------|
|---------------------------|
|---------------------------|
[---------------------------]


Where the only interactive part is defined by the * and the ___.

The whole application looks fine, but I can't click on anything outside that area.


God that was difficult to edit..
 
I found a tutorial that does the same thing.

If you run it in iPad simulator, the last two options aren't able to be selected.
 

Attachments

  • SQLiteTutorial 3.zip
    979.2 KB · Views: 91
Not gonna download your code atm, i'm on my Gaming pc. But wanted to check what happened.
Like the "image" (lol) you provided, it looks like the interactive design is only from iPhone measures. So something went wrong with your MainWindow (is my first guess).
so we really will need to see some code (or project files) to try to get to a solution.

Gz, Noxx
 
Not gonna download your code atm, i'm on my Gaming pc. But wanted to check what happened.
Like the "image" (lol) you provided, it looks like the interactive design is only from iPhone measures. So something went wrong with your MainWindow (is my first guess).
so we really will need to see some code (or project files) to try to get to a solution.

Gz, Noxx

Well, my project is based off of that, I used that to get started.

So any help would be great :D. It's a very simple build, like two or three classes. Not big in the slightest.
 
Something akin to this?
 

Attachments

  • Screen shot 2011-08-23 at 8.32.53 AM.png
    Screen shot 2011-08-23 at 8.32.53 AM.png
    107.5 KB · Views: 95
You're showing the size of the Tableview (which is apparently not full screen on the iPad).
More in the lines of your MainWindow.xib and your window size etc..

This is basically what I was getting at with my first reply: the UIWindow is probably stuck at iPhone size which does not seem to limit views drawing to the full iPad screen but does limit events to that size. I seem to remember that was what I found when I tried to transition an all-code (no xib files) iPhone app to the iPad
 
This is basically what I was getting at with my first reply: the UIWindow is probably stuck at iPhone size which does not seem to limit views drawing to the full iPad screen but does limit events to that size. I seem to remember that was what I found when I tried to transition an all-code (no xib files) iPhone app to the iPad

Yeah, I know that you were referring to that my kind sir.
But since he didn't really know what to answer. Apparently your question got forgotten.
I hope we at least come to a solution, because it's allways nice to have these things in our hand for "debugging" :p
 
Yeah, I know that you were referring to that my kind sir.
But since he didn't really know what to answer. Apparently your question got forgotten.
I hope we at least come to a solution, because it's allways nice to have these things in our hand for "debugging" :p

A simple thing to do would be to NSLog the frame and bounds of the UIWindow at runtime...
 
Sorry, here. Hopefully this helps a little more.


As you can see, the tableview displays fully on the iPad. Except the last few options aren't...clickable.


EDIT: Now I see it. The dimensions are 320x480 (iPhone sized). How can I edit them to make them bigger? They're greyed out
 

Attachments

  • Screen shot 2011-08-23 at 9.14.29 AM.png
    Screen shot 2011-08-23 at 9.14.29 AM.png
    83.2 KB · Views: 96
  • Screen shot 2011-08-23 at 9.16.56 AM.png
    Screen shot 2011-08-23 at 9.16.56 AM.png
    31.2 KB · Views: 93
Sorry, here. Hopefully this helps a little more.


As you can see, the tableview displays fully on the iPad. Except the last few options aren't...clickable.


EDIT: Now I see it. The dimensions are 320x480 (iPhone sized). How can I edit them to make them bigger? They're greyed out

That's because you have an iPhone MainWindow, not an iPad ;)
When you go to the Target, and you go to Summary, what does it say, is it iPhone/iPad/Universal?
And which XIB does it use to Startup? It says it clearly in a box.
 
Yes, but it has the same dimensions. (320x480).

Well, there is your problem..
Don't know on top of my hat, how to set the dimensions, I know they are locked. Because when I create a universal, it rebuilds it. What you could do, is make a clean XIB, recreate the MainWindow (for iPad).
ANd set your app to load the newly made xib for your iPad.
 
So, I created the new window, and everything.

But, I can't seem to connect anything (When you right click on the object in IB).


I attached the two pictures.

The old one is the connected, new one is the non-connected.

When I drag/drop the circle to the Navigation Controller, it attaches only as delegate (Instead of navigationController), and that when I fire up the simulator only loads the RootView Controller.
 

Attachments

  • Screen shot 2011-08-23 at 11.04.15 AM.png
    Screen shot 2011-08-23 at 11.04.15 AM.png
    19.9 KB · Views: 90
  • Screen shot 2011-08-23 at 11.04.32 AM.png
    Screen shot 2011-08-23 at 11.04.32 AM.png
    12.2 KB · Views: 95
Nvm, I got it.

Thank you guys for your help. Much appreciated. I've been trying to figure this out for all of today and yesterday, and finally got it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.