When updated to the next version, will the documents folder will be created by ios automatically? Or I must recreate the folder in code? Can documents folder created by code?
No, it will not be created automatically. You should create this folder:
- (void) createFolderDocumentIfNotExisted
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
NSFileManager *fm = [NSFileManager defaultManager];
if(![fm fileExistsAtPath:basePath]){
NSError *err;
[fm createDirectoryAtPath:basePath withIntermediateDirectories:NO attributes:nil error:&err];
}
}