Please note, this blog entry is from a previous course. You might want to check out the current one.
Once the user picks a scale by pinching or a new origin by panning or tapping, the new value should be stored in NSUserDefaults so that the scale and origin persist as new programs are graphed and even through relaunchings of your program.
When we store the scale in setScale as string:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setFloat:self.scale forKey:[NSString stringWithFormat:@"graphViewScale%i", self.graphView.tag]]; [defaults synchronize]; }
Continue reading “Assignment #3 Task #10”