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 03-08-2011, 10:04 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 33
Oyousif is on a distinguished road
Default Image as button

Hell again. I was attempting to make an app that when you click on a button a sound comes up. I know that part but I wanted to know how to make a button an image.

I tried putting the button behind the image but you can still see the button. Ok so my q's are:

1) Is there a way to make a image act like a button without putting a button behind the image?

2) If there is no answer to Number 1 (or if Number 2 is easier) is there a way to make a button invisible so the people cant see it?

Any answers would be much appreciated. Thanks!
Oyousif is offline   Reply With Quote
Old 03-08-2011, 10:19 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 916
lukeca is on a distinguished road
Default

1) Just set your button type to custom and then you can set an image to be used for the button

2) If you want the button to still react to touches then set it to a custom button with no image, it will be invisible then, if you just to hide the button completely and have it not react to touches set the hidden property to yes
lukeca is offline   Reply With Quote
Old 03-09-2011, 07:31 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: delhi india
Age: 24
Posts: 120
vijay.adhikari is on a distinguished road
Send a message via Skype™ to vijay.adhikari
Default

in IB just chane the button from round rect to custom ...and load the image ....
vijay.adhikari is offline   Reply With Quote
Old 03-09-2011, 12:30 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 33
Oyousif is on a distinguished road
Default

OK thanks guys. It helped alot.
Oyousif is offline   Reply With Quote
Reply

Bookmarks

Tags
uibutton, uiimage

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: 363
16 members and 347 guests
Absentia, akphyo, apatsufas, BinHex, dre, fredidf, Gaz, gmarro, host number one, jeroenkeij, Kirkout, MarkC, mottdog, PavelMik, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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