SHARE
TWEET

Untitled

a guest Jan 13th, 2013 24 Never
  1. [_IDBanners addObject:@"44"];
  2.             NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  3.             NSString *documentsPath = [paths objectAtIndex:0]; //Get the docs directory
  4.             NSString * name = [NSString stringWithFormat:@"%@.png",[_IDBanners objectAtIndex:i]];
  5.             NSString *filePath = [documentsPath stringByAppendingPathComponent:name]; //Add the file name
  6.  
  7.             NSData *pngData = [NSData dataWithContentsOfFile:filePath];
  8.             UIImage *image = [UIImage imageWithData:pngData];
  9.        
  10. NSLog(@"%@",image);
RAW Paste Data
Top