Guest User

Untitled

a guest
Oct 10th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. - (IBAction)logIn {
  2. NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
  3. if ([username text] != nil && [password text] != nil) {
  4. [defaults setValue:[username text] forKey:@"sa_username"];
  5. [defaults setValue:[password text] forKey:@"sa_password"];
  6. sa.username = [username text];
  7. sa.password = [password text];
  8. [sa login];
  9. }
  10. }
Add Comment
Please, Sign In to add comment