MGD
MGD

Reputation: 783

UIView Animation isn't working

[UIView beginAnimations:nil context:UIGraphicsGetCurrentContext()];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelay:0.0];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:viewHelp cache:YES];

[self.view addSubview:viewHelp];

[UIView commitAnimations];

Where am I doing wrong? I am able to switch the view but I am not able to animate it.

Upvotes: 0

Views: 129

Answers (1)

theiOSDude
theiOSDude

Reputation: 1470

[self.view addSubview:viewHelp]; the animation is just literally adding the subview, you need to work out what animation you want, and then apply it by changing values in the views frame property.?

follow this thread : click me

Upvotes: 2

Related Questions