I have an UIImageView
that I want to fade in.
Is there a way to enable that on an underlying UIViewController
?
I have translated the simplest answer, though they all work, C# .NET
for the MonoTouch
users:
public override void ViewDidAppear (bool animated)
{
base.ViewDidAppear (animated);
UIView.BeginAnimations ("fade in");
UIView.SetAnimationDuration (1);
imageView.Alpha = 1;
UIView.CommitAnimations ();
}
this simple code:
the
UIImage
is in the view and is connected via anIBOutlet
you can also, set the alpha from the utility panel.