How to use BOOL and String
<p>There is .plist file that has a key say XYZ and the value can be on or off.</p>

<p>Now I have this method <code>BOOL isEnabled()</code>.</p>

<p>I want to check the value for that in that plist and return BOOL based on on or off.</p>

<p>How do I do that?</p>

<pre><code>NSDictionary *plistDict = [NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.apple.BTServer.airplane.plist"];
BOOL Location = [[plistDict objectForKey:@"airplaneMode"] boolValue];

return Location;
</code></pre>

<p>This code is for Location Toggle for iPhone/SBSettings. Here for Location toggle the values are stored as 1 and 0 but for Airplane mode for which I modifying this code the values are on/off.</p>

<p>How do I convert on /off to BOOL?</p>
