I am using plist to save some data as follow, saving method
NSMutableArray * highScores = [NSMutableArray arrayWithObjects:
[NSNumber numberWithInt:597],
[NSNumber numberWithInt:452],
[NSNumber numberWithInt:365],
nil];
[defaults setObject:highScores forKey:@"high_scores"];
loading method
NSMutableArray * highScores = [defaults objectForKey:@"high_scores"];
for(NSNumber * score in highScores) {
NSLog(@"Score: %i", [score intValue]);
if (score >=100) {
--> OPEN A SPECIFIC UIVIEWCONTROLLER ON THE STORYBOARD
NSLog(@">100");
}
}
When i load the data say, if the score > 100 using the following code, i would like it to open a specific uiviewcontroller on my storyboard. May i know how can i do that?
Thanks