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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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-01-2009, 08:58 AM   #1 (permalink)
iPhone Neophyte
 
Join Date: Mar 2009
Posts: 41
Default Hidden Round Rect UIButton Behavior

Hi guys and gals,

I have an image and want to create "hotspots" on that image that respond to touches. (touch down)

I have a round rect button there but when i hide or set alpha to 0 the button events never get triggered, is there a way to hide a button without disabling it?

Thanks in advance.
erfmufn is offline   Reply With Quote
Old 04-09-2009, 11:34 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2009
Location: Seattle
Posts: 48
Default

Quote:
Originally Posted by erfmufn View Post
Hi guys and gals,

I have an image and want to create "hotspots" on that image that respond to touches. (touch down)

I have a round rect button there but when i hide or set alpha to 0 the button events never get triggered, is there a way to hide a button without disabling it?

Thanks in advance.
Instead of setting alpha to 0, set the type of the button to custom, but do not add a label or image.

This is described in the Dave Mark / Jeff LaMarche iPhone Development book, on page 69/70.
pmattf is offline   Reply With Quote
Old 12-16-2009, 04:27 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 54
Default

hi I am having the same demand of clicking on an invisible button, can I have some help with code here?
Georg is offline   Reply With Quote
Old 12-16-2009, 05:26 AM   #4 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 55
Default

Quote:
Originally Posted by pmattf View Post
Instead of setting alpha to 0, set the type of the button to custom, but do not add a label or image.

This is described in the Dave Mark / Jeff LaMarche iPhone Development book, on page 69/70.
Use this advice
EAGLE is offline   Reply With Quote
Reply

Bookmarks

Tags
round rect button, 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: 248
17 members and 231 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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