The Simulator is not case sensitive when it comes to file names.

The file name in the project is "Level 1 top.png"  <Capital L>

This code yields a nil provider in the iPhone, ergo no layer contents

imageFileName = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"level 1 top.png"]; <lower case l>
provider = CGDataProviderCreateWithFilename([imageFileName UTF8String]);
_topLayer.contents = (id)CGImageCreateWithPNGDataProvider(provider, NULL, true, kCGRenderingIntentDefault);

Whereas in the iPhone Simulator provider is not nil;



On Feb 12, 2009, at 8:42 PM, Brian Christensen wrote:

On Feb 12, 2009, at 21:23, David Blanton wrote:

I set up a CALayer

        is shows in the iPhone Simulator
        does not show in the iPhone

How can that be?

I doubt anyone can answer your question without seeing relevant code snippets.

/brian




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to