Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Content doesn't change correctly on a UIView
- SecondView *sview=[[SecondView alloc] init];
- [self.view addSubview:[sview view]];
- sview.view.layer.cornerRadius=20;
- CGRect rect=sview.view.frame;
- CGRect bound=sview.view.bounds;
- [sview.view setFrame:CGRectMake(rect.origin.x, btn.frame.origin.y, rect.size.width, 0)];
- [sview.view setBounds:CGRectMake(0, 0, bound.size.width, 0)];
- [UIView beginAnimations:nil context:nil];
- [UIView setAnimationDuration:1];
- [sview.view setFrame:CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height)];
- [sview.view setBounds:CGRectMake(0, 0, bound.size.width, bound.size.height)];
- [sview.view setTag:10];
- [UIView commitAnimations];
- sview.view.transform = CGAffineTransformMakeScale(0.01, 0.01);
- [UIView beginAnimations:@"animations" context:NULL];
- sview.view.transform = CGAffineTransformMakeScale(1.0, 1.0);
- [UIView commitAnimations];
Add Comment
Please, Sign In to add comment