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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-20-2010, 02:20 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 3
AndrewCr is on a distinguished road
Default iPad landscape-only app not responding to touches near the bottom of the screen

Hi, I’m an experienced developer, but relatively new to iOS.

I’m having some trouble with an iPad App, where my views are not responding to button touches in the bottom third of the screen. Touches on other buttons are working fine, so I know my views are getting hooked up properly when they’re loaded (I’ve created them in IB.) I get the same behavior on both the simulator and the device.

This is a landscape-orientation-only App, and I’m loading views using [NSBundle LoadNibNamed:]. This was the only non-trivial portion of the App, and I think I’ve jumped through all the appropriate hoops:
  • Added Initial Interface Orientation line to my .plist
  • Designed my views in Landscape orientation in IB
  • Added shouldAutoRotateToInterfaceOrientation to my top-level view that only return YES for landscape orientations
The landscape orientation may not be related, but I thought I should mention it, since it was the only thing I found a little wonky to build, and I see from the boards that other people have found this problematic as well. I'm pretty sure my view's bounds are right because I can see the buttons.

Does anyone have any ideas?

Thanks.

BTW, I've also posted this to Stack Overflow
AndrewCr is offline   Reply With Quote
Old 08-20-2010, 03:10 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 33
AvisNocturna is on a distinguished road
Default

Hi!

The problem is that the UIWindow could still have the portrait mode size and so no events will be passed to the views in the window.
AvisNocturna is offline   Reply With Quote
Old 08-20-2010, 04:39 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 3
AndrewCr is on a distinguished road
Default

It turns out my view's bounds were set to the full screen, but the frame was not. By explicitly setting the frame, I was able to get this working.

Thanks for the input!
AndrewCr is offline   Reply With Quote
Old 10-19-2010, 12:00 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 22
psudheer28 is on a distinguished road
Post

Hi all,

same problem for me too, my problem is in Portrait orientation mode.

working fine on landscape, but Portrait it is not working.

Last edited by psudheer28; 10-19-2010 at 04:33 AM.
psudheer28 is offline   Reply With Quote
Reply

Bookmarks

Tags
ipad, landscape, touch location

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 344
5 members and 339 guests
freewind, HemiMG, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:54 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0