Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. PFUser *currentuser = [PFUser currentUser];
  2. storeUserID = currentuser[@"connectedBook"]; //Store book id in a string
  3. NSLog(@"%@", storeUserID); // what i get <Book:f4Dg92xC2:(null)>
  4.  
  5.  
  6. PFQuery *query = [PFQuery queryWithClassName:@"Book"];
  7. [query getObjectInBackgroundWithId:storeUserID block:^(PFObject *books, NSError *error){
  8. PFObject *bookObject = books[@"bookName"];
  9. NSLog(@"bookName:%@", bookObject);
  10. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement