- - , , . int pushNotificationSeen. , pushNotificationSeen 1. , pushNotificationSeen 2. ( ):
-(void)saveData
{
if (self.pushNotificationSeen)
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setInteger:self.pushNotificationSeen forKey:@"seen?"];
[defaults synchronize];
}
}
viewDidLoad.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
self.pushNotificationSeen = [defaults integerForKey:@"seen?"];
, , , self.pushNotificationSeen 0, 1 2.
, - . , , .