tags:

views:

21

answers:

0

i have the following code which is suppose to be pulling image from documents folder, but yet nothing appear when i compile and run without error..help plz!!

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
 NSString *documentsDirectory = [paths objectAtIndex:0];
 NSString *path = [documentsDirectory stringByAppendingPathComponent:@"image%d.jpg"];
 UIImage *image = [UIImage imageWithContentsOfFile: path];