Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.progressView = [[ProgressView alloc] initWithFrame:CGRectMake(0, 0, 36, 36)];
- self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self.progressView];
- [UIView animateWithDuration:1.0f
- delay:1.0f
- options:UIViewAnimationOptionCurveEaseInOut
- animations:^{
- self.transform = CGAffineTransformScale(self.transform, 0.25f, 0.25f);
- }
- completion:nil];
- self.transform = CGAffineTransformScale(self.transform, 0.25f, 0.25f);
- self.transform = CGAffineTransformMakeScale(0.25f, 0.25f);
- frame: {{0, 0}, {0, 0}}
- frame: {{0, 0}, {36, 36}}
- frame: {{358, 4}, {36, 36}} // <-- This displays 3 times for some reason
- frame: {{385, 17}, {9, 9}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement