Hello, I have received an error that indicates that "savedNumberDict" is Out Of Scope. I am not quite sure where to look for a solution. Any suggestions? The code is below that I am using. Thanks.
- (void)applicationDidFinishLaunching:(UIApplication*) application {
self.savedNumber = [[NSUserDefaults standardUserDefaults]objectForKey:kNumberLocationKey];
if (savedNumber == nil) {
savedNumber = @"555 555 1212";
NSDictionary *savedNumberDict = [NSDictionary dictionaryWithObject:savedNumber forKey:kNumberLocationKey];
[[NSUserDefaults standardUserDefaults] registerDefaults:savedNumberDict ];
}
[window addSubview:viewController.view];
[window makeKeyAndVisible];
}