Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. - (void)viewDidLoad
  2. {
  3. [super viewDidLoad];
  4. // Do any additional setup after loading the view.
  5.  
  6. _orText.alpha = 0;
  7.  
  8. //Email login button properties
  9. _emailLoginForwardButton.layer.cornerRadius = _emailLoginForwardButton.frame.size.width / 2;
  10. self.emailLoginForwardButton.layer.borderWidth = 1.5f;
  11. self.emailLoginForwardButton.layer.borderColor = [UIColor whiteColor].CGColor;
  12. [self.emailLoginForwardButton setImageEdgeInsets:UIEdgeInsetsMake(7, 7, 7, 7)];
  13. _emailLoginForwardButton.frame = CGRectMake(77, 700, 40, 40);
  14. [UIView animateWithDuration:0.5
  15. animations:^
  16. {
  17. _emailLoginForwardButton.frame = CGRectMake(77, 470, 40, 40);
  18. }
  19. completion:^(BOOL finished)
  20. {
  21. [UIView animateWithDuration:0.3
  22. delay:0.6
  23. usingSpringWithDamping:0.2
  24. initialSpringVelocity:0.4
  25. options:0
  26. animations:^(void){}
  27. completion:^(BOOL finished)
  28. {
  29. _orText.text = @"or";
  30.  
  31. [UIView animateWithDuration:0.4
  32. animations:^
  33. {
  34. [_orText setAlpha:1];
  35. }
  36. ];
  37. }
  38. ];
  39. }
  40. ];
  41.  
  42. //Google login button properties
  43. _googleLoginForwardButton.layer.cornerRadius =_googleLoginForwardButton.frame.size.width / 2;
  44. self.googleLoginForwardButton.layer.borderWidth = 1.5f;
  45. self.googleLoginForwardButton.layer.borderColor = [UIColor grayColor].CGColor;
  46. _googleLoginForwardButton.frame = CGRectMake(257, 700, 40, 40);
  47. [UIView animateWithDuration:0.5
  48. delay:0.4
  49. options:0
  50. animations:^
  51. {
  52. _googleLoginForwardButton.frame = CGRectMake(257, 470, 40, 40);
  53. }
  54. completion:^(BOOL finished)
  55. {
  56. [UIView animateWithDuration:0.3
  57. delay:0.3
  58. usingSpringWithDamping:0.2
  59. initialSpringVelocity:0.4
  60. options:0
  61. animations:^
  62. {
  63. }
  64. completion:^(BOOL finished)
  65. {
  66. }
  67. ];
  68. }
  69. ];
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement