Showing
1 changed file
with
0 additions
and
9 deletions
@@ -35,16 +35,7 @@ | @@ -35,16 +35,7 @@ | ||
35 | if (![super initWithTile:_tile]) | 35 | if (![super initWithTile:_tile]) |
36 | return nil; | 36 | return nil; |
37 | 37 | ||
38 | - // From the example in the documentation... :-/ | ||
39 | -/* CFURLRef url = CFURLCreateWithFileSystemPath (NULL, (CFStringRef)file, kCFURLPOSIXPathStyle, false); | ||
40 | - CGDataProviderRef provider = CGDataProviderCreateWithURL (url); | ||
41 | - CFRelease (url); | ||
42 | - image = CGImageCreateWithPNGDataProvider (provider, NULL, true, kCGRenderingIntentDefault); | ||
43 | -*/ | ||
44 | image = [[UIImage alloc] initWithContentsOfFile:file]; | 38 | image = [[UIImage alloc] initWithContentsOfFile:file]; |
45 | -// [image retain]; | ||
46 | -// [self setImageToData:data]; | ||
47 | - | ||
48 | return self; | 39 | return self; |
49 | } | 40 | } |
50 | 41 |
-
Please register or login to post a comment