Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [APIManager login:<Username> password:<Password> fetchUserProfile:true withCompletion:^(User * _Nullable user, NSError * _Nullable error) {
- if (error || user == nil) {
- // handle error
- return;
- }
- // handle success (NOTE: Session.sharedInstance.currentUser == user)
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement