ios - iPhone: UIImageView Fades in - Howto? -


i have uiimageview want fade in.

is there way enable on underlying uiviewcontroller?

i have translated simplest answer, though work, c# .net monotouch users:

    public override void viewdidappear (bool animated)     {         base.viewdidappear (animated);         uiview.beginanimations ("fade in");         uiview.setanimationduration (1);         imageview.alpha = 1;         uiview.commitanimations ();     } 

initially set alpha of imageview 0 imageview.alpha = 0;

- (void)fadeinimage  { [uiview beginanimations:@"fade in" context:nil];     [uiview setanimationduration:1.0];     imageview.alpha = 1.0;     [uiview commitanimations];  } 

Comments