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];