Discussion Forums  >  Uncategorized

Replies: 3    Views: 543

kasm1
Aspiring developer
Profile
Posts: 16
Reg: Nov 09, 2010
USA
160
07/24/11 10:36 AM (14 years ago)

Custom Menu Button Icon not showing up

I'm trying to add my own custom icon to a button-style menu in ver. 1.5. I copied the .png file to both the BT_Images folder and the BT_Images -> Icon folder using Finder just to be sure I had the file in the right spot. When I run Xcode, however, it can't find the file. When I look at the BT_Images and Icon folders in Xcode I don't see the file name. So I tried copying the file directly into Xcode and made sure to check the Destination: Copy into destination group's... as suggested by another BT user in this Forum. I got a message saying that the operation couldn't be completed because the file exists. The message I get is BT_FileManager: File does not exist in cached directory. Other than this issue, love the new 1.5.
 
kasm1
Aspiring developer
Profile
Posts: 16
Reg: Nov 09, 2010
USA
160
like
07/24/11 11:32 AM (14 years ago)
Nevermind. Of course once I posted this, I repeated the process and it worked.
 
kasm1
Aspiring developer
Profile
Posts: 16
Reg: Nov 09, 2010
USA
160
like
07/24/11 11:42 AM (14 years ago)
One thing as an FYI if anyone else has this issue, I had to stop running the project in the simulator in Xcode then restart the run/build for the icon to show up.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/24/11 01:37 PM (14 years ago)
If you add a new resource (image, document, whatever) to the Xcode project you will need to re-compile and re-launch to use it. This is normal. The idea is that when you add items to the Xcode project you are telling Xcode to compile these items with the binary it produces. This means you'll always have to re-compile when you drag things into Xcode.
 

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.