iOS 8 allows you UIDocumentPickerViewController
for picking files on iCloud. Other file inside your iDevice could not load or find with this controller.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSFileManager *manager = [NSFileManager defaultManager];
NSArray *fileList = [manager contentsOfDirectoryAtPath:documentsDirectory error:nil];
for (NSString *s in fileList){
NSLog(@"%@", s);
}
You can access files from your App Sandbox, and Some other type like, Images/Videos through UIImagePickerViewController
.
In short, There is no way to get other files directly through any controller :(
HTH, Enjoy Coding !!