I have a UIView I'm animating in so that the user can select something and then removing it. Right now I have the following code, and it is really fast. I was wondering if there was a way to slow this down so that it isn't as jaring.
The UIView is not full screen size, but rather about a third in size.
flipOutView.Frame = new System.Drawing.RectangleF(new PointF(400, 100), new SizeF(160, 230));
UIView.BeginAnimations("k");
flipOutView.Frame = new System.Drawing.RectangleF(new PointF(150, 100), new SizeF(160, 230));
UIView.CommitAnimations();
Also, I'm new to Animations, so are there effects that can be applied? Any good references?
[UIView setAnimationDuration:1.5]; // for example
also consider the animation profile - for example you could do this as well;
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
EDIT:
Memo to self, must remember that not everyone writes in Objective-C! OK so the above is for obj-c, but you'll find that monotouch has the same methods available I'm sure.
UIView.SetAnimationDuration(3);
to delay animation to 3 seconds
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.