I am programming in Objective-C for iOS. I would like to parse an object of type NSString into a scalar of type BOOL.
I have a value, and I know that it will either be @"YES" or @"NO", but that YES (or) NO value is NSString and I just want to change NSString into BOOL.
How can I do that?
Please answer me if you know.
Thanks for reading.
I think it's this:
BOOL boolValue = [myString boolValue];