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 Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 03-02-2010, 06:24 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 2
Angry Interface Builder - No Images!

Hi all,

I've searched the net for answers, but can't find one that works.

I drag my PNG to my resources folder, click "Copy items into destination groups folder", reference type: default, text encoding Unicode-UTF8, and "Recursively create groups for any added folders".

But when I launch my XIB file, I can't access any of my images in drop downs, and the Media browser shows nothing.

I've tried saving out of photoshop in 72dpi, with alpha, all sorts. I've even dragged images in from sample code found on the web, but can't access those images.

If I type the name of the image I get a "?" image. But when I run my project from xCode, it works. However Cmd-R in Simulator shows a grey space...

...I've tried reinstalling Xcode, but all I get is an upgrade option...

...ANY thoughts would be most welcome, I'm pulling my hair out here!!!

Regards,
Craig.
cdlftw is offline   Reply With Quote
Old 03-02-2010, 11:50 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 2
Default Anyone...?

Anyone?

I've tried 3.2, and 3.1.3 of the SDK, uninstalling and reinstalling - still no luck. I've tried projects in \Documents\Projects and just plain \Documents...

...I notice however if I open the XIB from Interface Builder I see my images, if I open from a double click on the XIB in XCODE I don't see the images!!! VERY STRANGE!

Craig.
cdlftw is offline   Reply With Quote
Old 03-07-2010, 03:35 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 38
Default

hey i got the same problem, anyone know how to solve it?
nathanyot is offline   Reply With Quote
Old 03-07-2010, 12:05 PM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 63
Default

Try putting the images in the "resources" folder.
WiiFan2012 is offline   Reply With Quote
Old 03-07-2010, 06:31 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 259
Default

I had the same problem on one of my projects. I have no clue what caused it, but I was able to type the name into the image field in IB and it worked when I ran the program. You'll get a question mark box where the image is supposed to be in interface builder though, so if your design relies on seeing the image, it doesn't help.
__________________
Follow me on Twitter @imppeng

My Apps
HemiMG is online now   Reply With Quote
Old 03-15-2010, 04:17 PM   #6 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 14
Default

Quote:
Originally Posted by HemiMG View Post
I had the same problem on one of my projects. I have no clue what caused it, but I was able to type the name into the image field in IB and it worked when I ran the program. You'll get a question mark box where the image is supposed to be in interface builder though, so if your design relies on seeing the image, it doesn't help.
I have had this issue before but haven't had it recently. What you need to do is create a group called "resources" in Xcode and put your images in there. When adding images, you want to copy them to your app folder root, then drag them into the resources folder in Xcode, and do not check to add recursively. You may also need to restart your mac.

Hope that helps
edcousins is offline   Reply With Quote
Old 04-28-2010, 11:09 PM   #7 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 1
Default

Quote:
Originally Posted by edcousins View Post
I have had this issue before but haven't had it recently. What you need to do is create a group called "resources" in Xcode and put your images in there. When adding images, you want to copy them to your app folder root, then drag them into the resources folder in Xcode, and do not check to add recursively. You may also need to restart your mac.

Hope that helps
Uh - hold on guys. You don't need to jump through all the hoops and you definitely don't need to restart your mac. Add > Existing Files to the project in Xcode wherever you want - typically in Resources which is where most people put them. Then build the project. Then go to Interface Builder and select File > Reload All Classes. The images are now accessible from the icon drop downs.
drewwings is offline   Reply With Quote
Reply

Bookmarks

Tags
ib missing images

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: 258
18 members and 240 guests
ADY, AragornSG, BrianSlick, Dani77, Dattee, dre, glenn_sayers, HemiMG, JasonR, karlam963, nobre84, prchn4christ, Rudy, spiderguy84, themathminister, tomtom100, viniciusdamone, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

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