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 04-22-2010, 11:25 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
coulls is on a distinguished road
Default Moved UIButton not responding to touches

Hi all,

I have UIView with a bunch of buttons. When one of the buttons is clicked, the whole UIView slides up off the screen, leaving one button visible. The idea is when you click this button, the whole UIView slides back into place.

Step 1 of drawing and animating the UIView (using [self setFrame:newRect]) works fine.

Step 2 of being able to respond to touches on the remaining visible button fails.

It's almost like moving a UIButton doesn't necessary mean it's touch/capture/hit area doesn't move with it. (It doesn't seem to register touches in the place where it originated either, so I'm a bit lost)

Has anyone else hit this issue?

Cheers,

Coulls
coulls is offline   Reply With Quote
Old 04-22-2010, 01:10 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
coulls is on a distinguished road
Default

Update: I have found that if I move the view 64pixels or less, the buttons retain their 'clickability'... If I move 65 pixels or more, then it forgets to move the hit area as well.

There has to be a reason as "64" pixels just happens to be too much of a coincidence to be the accidental limit.

Coulls
coulls is offline   Reply With Quote
Reply

Bookmarks

Tags
touch event, uibutton

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: 313
20 members and 293 guests
baja_yu, cgokey, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, HowEver, iphonedevshani, jbro, JoeRCruso, mdpauley, n00b, newDev, seokwon lee, SLIC, stanny, Steven.C, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,875
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

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