Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. [APIManager login:<Username> password:<Password> fetchUserProfile:true withCompletion:^(User * _Nullable user, NSError * _Nullable error) {
  2. if (error || user == nil) {
  3. // handle error
  4. return;
  5. }
  6. // handle success (NOTE: Session.sharedInstance.currentUser == user)
  7. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement