Discussion Forums  >  Uncategorized

Replies: 4    Views: 379

mosaicgc
I hate code!
Profile
Posts: 5
Reg: Jun 02, 2011
Ocean Springs, ...
50
06/08/11 02:04 PM (14 years ago)

Button Background

Any way to change the button background to an image? I've saved it in BT_Images and pointed to it in the button options, but all i get is a question mark in the simulator. Any ideas?
 
mosaicgc
I hate code!
Profile
Posts: 5
Reg: Jun 02, 2011
Ocean Springs, ...
50
like
06/08/11 02:11 PM (14 years ago)
Works fine if I use the URL option.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
06/08/11 03:09 PM (14 years ago)
Even though you saved the file to your BT_images folder you still have to drag it in to your buzztouch project in xcode... did you do this? I use images for my button backgrounds so I know it can be done.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
06/08/11 03:31 PM (14 years ago)
What format image are you using? I believe .png is required.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/08/11 10:50 PM (14 years ago)
Yup, use .png AND be sure to look at the Output Console in Xcode when running the app. We went through great pains to output useful info to the console so you can see where something may be wrong. Look for test like: 'myimage.png could not be found' or 'downloading myimage.png from URL' If the software can't find your image in the project, @mutzy is right, it's not been added to Xcode properly.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.