Hi, I think the function FileSystem::GetUserDocumentsDir() should return the Documents dir on iOS, but it just return the app dir as the FileSystem::GetProgramDir().
So I checked the code and found, the two functions just both call the SDL_IOS_GetResourceDir() function which return the app dir which can not write file to.
Following code should return the correct Documents dir.
[code] NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
const char *temp = [basePath UTF8String];
resource_dir = malloc(strlen(temp) + 1);
strcpy(resource_dir, temp);[/code]