Closed sumantanf closed 11 years ago
NSMutableArray *fullPathImageArray=[[NSMutableArray alloc]init]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; filePathsArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentsDirectory error:NULL]; filePathsArray = [filePathsArray filteredArrayUsingPredicate: [NSPredicate predicateWithFormat:@"pathExtension ==[c] %@", @"jpg"]]; for (int i=0; i<[filePathsArray count]; i++) { NSString* fullPathToFile = [documentsDirectory stringByAppendingPathComponent: [filePathsArray objectAtIndex:i]]; [fullPathImageArray insertObject:fullPathToFile atIndex:i]; }
When fullPathImageArray is used as PhotoSourceTypeLocal nothing is displayed in the gallery.
Just followed issue number 36 and got the desired result
When fullPathImageArray is used as PhotoSourceTypeLocal nothing is displayed in the gallery.