轮播图片, 不用滚动视图, 也不用时间计时器

    NSArray *myImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"1"],

                       [UIImage imageNamed:@"2"],

                       nil];

    

    UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.window.frame.size.width, self.window.frame.size.height)];

    imageView.animationImages = myImages;

    imageView.animationDuration = 1.5;     //浏览整个图片一次所用的时间

    imageView.animationRepeatCount = 0;    //  动画重复次数,0表示一直重复着

    [imageView startAnimating];

    [self.window addSubview:imageView];

    [imageView release];

原文地址:https://www.cnblogs.com/hsxblog/p/4937754.html