Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- _orText.alpha = 0;
- //Email login button properties
- _emailLoginForwardButton.layer.cornerRadius = _emailLoginForwardButton.frame.size.width / 2;
- self.emailLoginForwardButton.layer.borderWidth = 1.5f;
- self.emailLoginForwardButton.layer.borderColor = [UIColor whiteColor].CGColor;
- [self.emailLoginForwardButton setImageEdgeInsets:UIEdgeInsetsMake(7, 7, 7, 7)];
- _emailLoginForwardButton.frame = CGRectMake(77, 700, 40, 40);
- [UIView animateWithDuration:0.5
- animations:^
- {
- _emailLoginForwardButton.frame = CGRectMake(77, 470, 40, 40);
- }
- completion:^(BOOL finished)
- {
- [UIView animateWithDuration:0.3
- delay:0.6
- usingSpringWithDamping:0.2
- initialSpringVelocity:0.4
- options:0
- animations:^(void){}
- completion:^(BOOL finished)
- {
- _orText.text = @"or";
- [UIView animateWithDuration:0.4
- animations:^
- {
- [_orText setAlpha:1];
- }
- ];
- }
- ];
- }
- ];
- //Google login button properties
- _googleLoginForwardButton.layer.cornerRadius =_googleLoginForwardButton.frame.size.width / 2;
- self.googleLoginForwardButton.layer.borderWidth = 1.5f;
- self.googleLoginForwardButton.layer.borderColor = [UIColor grayColor].CGColor;
- _googleLoginForwardButton.frame = CGRectMake(257, 700, 40, 40);
- [UIView animateWithDuration:0.5
- delay:0.4
- options:0
- animations:^
- {
- _googleLoginForwardButton.frame = CGRectMake(257, 470, 40, 40);
- }
- completion:^(BOOL finished)
- {
- [UIView animateWithDuration:0.3
- delay:0.3
- usingSpringWithDamping:0.2
- initialSpringVelocity:0.4
- options:0
- animations:^
- {
- }
- completion:^(BOOL finished)
- {
- }
- ];
- }
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement