Re: CALayer wierdness
Re: CALayer wierdness
- Subject: Re: CALayer wierdness
- From: David Blanton <email@hidden>
- Date: Thu, 12 Feb 2009 23:16:08 -0700
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 (email@hidden)
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:
This email sent to email@hidden