Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. self.progressView = [[ProgressView alloc] initWithFrame:CGRectMake(0, 0, 36, 36)];
  2. self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self.progressView];
  3.  
  4. [UIView animateWithDuration:1.0f
  5. delay:1.0f
  6. options:UIViewAnimationOptionCurveEaseInOut
  7. animations:^{
  8. self.transform = CGAffineTransformScale(self.transform, 0.25f, 0.25f);
  9. }
  10. completion:nil];
  11.  
  12. self.transform = CGAffineTransformScale(self.transform, 0.25f, 0.25f);
  13.  
  14. self.transform = CGAffineTransformMakeScale(0.25f, 0.25f);
  15.  
  16. frame: {{0, 0}, {0, 0}}
  17. frame: {{0, 0}, {36, 36}}
  18. frame: {{358, 4}, {36, 36}} // <-- This displays 3 times for some reason
  19. frame: {{385, 17}, {9, 9}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement