Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (IBAction)logIn {
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- if ([username text] != nil && [password text] != nil) {
- [defaults setValue:[username text] forKey:@"sa_username"];
- [defaults setValue:[password text] forKey:@"sa_password"];
- sa.username = [username text];
- sa.password = [password text];
- [sa login];
- }
- }
Add Comment
Please, Sign In to add comment