If you are a beginner in Parse SDK and integrating it for the first time then you may face this little hurdle. While fetching Boolean data from Parse DB we get BOOL value in NSNumber format and we can not check or compare it directly with iOS bool. so use below code line to check.
if ([[[PFUser currentUser] objectForKey:@"isBoolean"] boolValue]) {
// do what you want...
0 Comment(s)