What is the command of delayin开发者_Go百科g an action to fade in an image?
Sounds like you want
+ (void)setAnimationDelay:(NSTimeInterval)delay
Use it like this (non-block based animations):
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelay:1.5];
myImage.alpha = 1.0;
[UIView commitAnimations];
For Delaying the action u can do in AppDelegation, didFinishLaunchingWithOptions
          [NSThread sleepForTimeInterval:2];
For Fade in and Fade out of Image. u can use custom methods for Fade and fade out
Better you could see this post http://iosdevelopertips.com/user-interface/fade-transition-fade-images-in-and-out.html
I find the new block-based animation methods on UIView pretty simple to work with:
https://developer.apple.com/documentation/uikit/uiview
You could do something like
UIImageView *yourPic;  // assume it exists
yourPic.opacity = 0.0;
[UIView animateWithDuration:1.0 animations:^
{
    yourPic.opacity = 1.0;
}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论