Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Boolean Problems
12-30-2011, 09:12 AM #1Boolean Problems
Hi i need help to read and edit a boolean value in object c. how can i do that? can you take me an example ?
12-30-2011, 09:26 AM #2
Where are you trying to read it from? a PLIST?? UserDefaults?? Blankspace??
// From user defaults BOOL someBool = [[NSUserDefaults standardUserDefaults] objectForKey:<someKey>]; // From plist NSDictionary *plist = [NSDictionary dictionaryWithContentsOfFile:<filePath>]; BOOL someBool = [plist objectForKey:<someKey>];
Last edited by truehybridx; 12-30-2011 at 09:29 AM.Get the latest info for NoAccSplash Here
Currently it should work on iOS 4.x - 6.x
If you'd like to help extend its functionality, the source is also available.
01-03-2012, 04:54 AM #3
i have try it
check = [filePath objectForKey:@"Test"];
Test.text = check;
how can i fix that?