Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to check BOOL value of Parse Object in iOS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 584
    Comment on it

    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.

    1. if ([[[PFUser currentUser] objectForKey:@"isBoolean"] boolValue]) {
    2. // do what you want...

    Hope it helps. Happy Coding!!!

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: