Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)signIn {
- //sign in
- NSLog(@"Signing in");
- [signin setAlpha:0.5];
- NSLog(@"user: %@ // pass: %@", username.text, password.text);
- NSString *user = username.text;
- NSString *pass = password.text;
- NSDictionary *feed = [self userLogin:user :pass];
- //return feed;
- if ([feed valueForKey:@"error"]) {
- [account_signin setText:[feed valueForKey:@"error"]];
- }
- else {
- [user_id setText:[feed valueForKey:@"id"]];
- [user_hash setText:[feed valueForKey:@"hash"]];
- [user_username setText:[feed valueForKey:@"username"]];
- [user_email setText:[feed valueForKey:@"email"]];
- [user_profile setAlpha:1.0];
- [username resignFirstResponder];
- [password resignFirstResponder];
- [account setFrame:CGRectMake(0.0f,-175.0f,320.0f,411.0f)];
- [user_profile setFrame:CGRectMake(0.0f,-148.0f,320.0f,148.0f)];
- [UIView beginAnimations:@"" context:nil];
- [UIView setAnimationDuration:0.4];
- [UIView setAnimationDelegate:self];
- [account setFrame:CGRectMake(0.0f,0.0f,320.0f,411.0f)];
- [user_profile setFrame:CGRectMake(0.0f,0.0f,320.0f,148.0f)];
- [UIView commitAnimations];
- }
- }
Add Comment
Please, Sign In to add comment