« first day (18 days earlier)      last day (557 days later) » 

1 message moved from NSChat
 
2 hours later…
07:34
NSFileManager *fileManager=[NSFileManager defaultManager];
NSString *path=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"images"];
NSError * error = NULL;
NSArray *contentsOfBundle = [fileManager contentsOfDirectoryAtPath: [[NSBundle mainBundle] resourcePath] error: &error];
if(error)
{
    NSLog( @"error getting contents - %@", [error localizedDescription]);
} else {
    NSLog( @"contents of folder is %@", contentsOfBundle);
    NSLog( @"path is %@", path);
    BOOL success=[fileManager fileExistsAtPath:path];
1 message moved from iPhone / iPad
07:46
NSURL * resourceFolderURL = [[NSBundle mainBundle] resourceURL];
if(resourceFolderURL)
{
    NSURL * imagesFolderURL = [resourceFolderURL URLByAppendingPathComponent: @"images" isDirectory: YES];
    if(imagesFolderURL)
    {
        NSError * error = NULL;
        BOOL imagesFolderExists = [imagesFolderURL checkResourceIsReachableAndReturnError: &error];
        if(imagesFolderExists == NO)
        {
            NSLog( @"error getting contents from %@ - %@", [imagesFolderURL absoluteString], [error localizedDescription]);
1 message moved from iPhone / iPad

« first day (18 days earlier)      last day (557 days later) »