Hi,

 

I would like to have an animated background, and have setup a
UIScrollview with a UIImageView added. I have setup

Some code to resize the background image but it is not working. 

 

Is this the best way to do it, or is there another way that works?

 

Thanks

Jon

 

public void StartAnimating() {

                Console.WriteLine("start anim");

                hasReset = false;

ims = image.Frame.Size;

                BeginInvokeOnMainThread (delegate {

                                UIView.BeginAnimations("zoom");

                                UIView.SetAnimationDuration(5f);

 
UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);

                                image.Frame.Size = new SizeF(ims.Width *
1.2f, ims.Height *1.2f);

                                UIView.CommitAnimations();

                });

}

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to