当前位置:编程学习 > wap >>

图片自动切换

  UIImage *img1=[UIImage imageNamed:@"1.JPG"];
    UIImage *img2=[UIImage imageNamed:@"2.JPG"];
    UIImage *img3=[UIImage imageNamed:@"3.JPG"];
    _imgview.animationImages=[NSArray arrayWithObjects:img1,img2,img3,img2, nil];
    _imgview.animationDuration=0.6;
    [_imgview startAnimating];//动画开始
    //停止[_imgview stopAnimating];
补充:移动开发 , IOS ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,