|
Replies
:
11
-
Pages
:
1
-
Last Post
:
Oct 14, 2008 10:43 PM
by: legna
|
|
|
Posts:
33
Registered:
May 6, 2008
|
|
|
|
image appearing in simulator but not when put onto iPhone device
Posted:
Jul 12, 2008 4:27 PM
|
|
|
i have a scary issue and think it's a bug
my other xibs images load fine and the image for this view loads fine in the
simulator..
but when i put it onto the device it doesn't show up
it's for sure copied along with the other images in the copy bundle resource
not sure what to do
Mac OS X (10.5.2)
|
|
Posts:
762
Registered:
Sep 11, 2004
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Jul 12, 2008 5:07 PM
in response to: turinreza
|
|
|
1. Put in a breakpoint and check the UIImage* value after it's supposed to load.
If not- (besides checking spelling, etc)
2. Open your target on the project left and see if the resource is listed in the resources to copy over.
G5 2.5Ghz, MacBook Pro
Mac OS X (10.5.2)
|
|
Posts:
110
From:
Cupertino
Registered:
May 12, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Jul 12, 2008 5:13 PM
in response to: turinreza
|
|
|
Is it a gif or jpg or png? I had some problems trying to use images with transparency; only gifs seemed to work properly (I filed a bug report).
iMac
Mac OS X (10.5.2)
|
|
Posts:
33
Registered:
May 6, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Jul 13, 2008 12:41 AM
in response to: Steve Patt
|
|
|
it's just a png file
doesn't seem like it is transparent..
(using gimp to check image properties)
Mac OS X (10.5.2)
|
|
Posts:
33
Registered:
May 6, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Jul 13, 2008 12:43 AM
in response to: Scott Squires1
|
|
|
it is in the resources
and does load in the uiimage properties..
not mispelled...
Mac OS X (10.5.2)
|
|
Posts:
33
Registered:
May 6, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Jul 13, 2008 1:14 AM
in response to: turinreza
|
|
|
i changed the resolution from 120 to something like 90
and it started to show up...
maybe too high a resolution?
weird
Mac OS X (10.5.2)
|
|
Posts:
2
From:
NorCal
Registered:
Aug 5, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Aug 5, 2008 3:15 PM
in response to: turinreza
|
|
|
Idon't think it has to do with resolution. I am having same issue and my images are all 72.
I'm using UIImage to load so it shouldn't be a Library issue. Very strange.
Anyone have any suggestions?
Message was edited by: Rico_v2.0
|
|
Posts:
2
From:
us
Registered:
Apr 16, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Aug 5, 2008 9:55 PM
in response to: Rico_v2.0
|
|
|
iPhone is case-sensitive. XCode and simulator are not. Hope this helps.
MacbookPro
Mac OS X (10.5.2)
|
|
Posts:
2
From:
NorCal
Registered:
Aug 5, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Aug 6, 2008 4:38 PM
in response to: DeveloperJohn
|
|
|
As is often the case it's the tiniest detail that throws everything out of whack. Thanks DeveloperJohn - I did, in fact have "icon.png" when the file was "Icon.png". Works like a charm now!
|
|
Posts:
65
From:
United States
Registered:
Jul 21, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Sep 2, 2008 2:16 PM
in response to: Rico_v2.0
|
|
|
I am now running into a similar issue. I have an image that loads just fine if I use something like:
fileName = @"background_image.png";
backgroundImageView.image = UIImage imageNamed:fileName;
But not if I create the fileName dynamically like this:
fileName = self retrieveImageFromUserDefaults;
fileName = fileName stringByAppendingString:@".png";
In either case it's the same fileName (case sensitivity and all). I have tried PNG vs GIF just in case. And I output the fileName to make sure it was the same in both cases. I feel like it's something small I must be missing, any ideas?
MacBook Pro
Mac OS X (10.5.4)
|
|
Posts:
65
From:
United States
Registered:
Jul 21, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Sep 2, 2008 2:27 PM
in response to: darkpegasus
|
|
|
Okay, I wasn't exactly using background_image.png, I was using Background_image.png but it wouldn't work unless the file name was all lowercase for some reason (even if I my cases matched up).
MacBook Pro
Mac OS X (10.5.4)
|
|
Posts:
18
From:
us
Registered:
Mar 29, 2008
|
|
|
|
Re: image appearing in simulator but not when put onto iPhone device
Posted:
Oct 14, 2008 10:43 PM
in response to: darkpegasus
|
|
|
I am running into the exact same thing, except I have tried everything mentioned in this thread. Here's my set up... running 2.2 SDK with 2.2 iTouch OS. I have downloaded the sample applications and changed the Project settings to use the 2.2 SDK and changed the user deployment certificate to my ID. I can run the apps in the simulator perfectly fine - the Icon.png gets shown and the images get displayed correctly. However, when I run them on my device, the app Icon is completely white. In fact the Metronome app runs, but displays a black screen (the UI elements do get displayed however).
Something weird is going on. My gut tells me it is a SDK/graphics driver configuration problem. Did the 2.1 SDK need to be uninstalled before installing 2.2?
Im not changing any source code for the samples, so I dont think its a programatic issue.
thanks
mini
Mac OS X (10.5.2)
|
|
|