• UIImageView 动画


    - (void)viewDidLoad
    {
        [super viewDidLoad];
        // Do any additional setup after loading the view.
       
       
        //显示图片的UIImageView
        UIImageView *imageview=[[UIImageView alloc]initWithFrame:CGRectMake(50, 100, 200, 200)];
        imageview.backgroundColor=[UIColor redColor];
        [self.view addSubview:imageview];
       
        //动画的实现
        NSMutableArray * images = [NSMutableArray arrayWithCapacity:6];
        for (int i = 1; i <= 6; i++)
        {
            NSString * imageName = [NSString stringWithFormat:@"%d.jpg",i];
            UIImage * image = [UIImage imageNamed:imageName];
           
            [images addObject:image];
        }
        imageview.animationImages = images;
        imageview.animationDuration = 0.3;
        [imageview startAnimating];

    }

  • 相关阅读:
    Json Web Token
    logstash 收集 IIS 日志实践
    Lucene Query In Kibana
    autofac 在.net core 与经典asp.net中的差异
    .net core 集成 autofac.
    向量化
    神经网络学习1
    漏斗限流
    正则化(Regularization)
    简单限流
  • 原文地址:https://www.cnblogs.com/zhibin/p/4137401.html
Copyright © 2020-2023  润新知