Code: Select all
-(void) loadSavedFile: (id) sender {
NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
NSString *fileName = [NSString stringWithFormat:@"%@/newWorld.json", documentsDirectory];
[super loadWorld:nil andJsonFile:fileName];
}
Is there any rule of thumb for doing this right? Is it related to the size of the images? Anything else I should look for? Going over my code I can't see anything obvious, like calling it several times or something like that. It all looks clean. But slow
