Trying to read a plist and change my font color depending on the option that was selected in the following settings bundle.
![enter image description here](https://i.stack.imgur.com/uEG3W.png)

The following is how I am trying to accomplish it:

```
NSString *path = @"/var/mobile/Library/Preferences/NCNotes.plist";
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
fontSize = [[dict objectForKey:@"slideSwitched"] floatValue];

if ([[dict objectForKey:@"noteColor"] valueForKey:@"Purple"]) {
   noteView.textColor = [UIColor purpleColor];
} else {
    noteView.textColor = [UIColor blackColor];
}

```

Any ideas why this is why my app is crashing? How do I read the values and change the color depending on what was selected?