Posted By

TenDegrees on 12/09/15


Tagged

login Unity TenDegrees


Versions (?)

Unity Login


 / Published in: Objective C
 

An example of how to login to Unity and store the current logged-in user's profile.

  1. [self signInToUnityWithEmail:self.loginMenuEmailTextField.text andPassword:self.loginMenuPasswordTextField.text withCompletionBlock:^(Profile * profile, bool success, NSString * errorMessage)
  2. {
  3. if(success)
  4. {
  5. self.loggedInUserProfile = profile;
  6. }
  7. if(userWantsAutoLoginEnabled)
  8. {
  9. //store login information securely
  10. }
  11. else
  12. {
  13. NSLog(@"%@",errorMessage);
  14. }
  15. }];

Report this snippet  

You need to login to post a comment.