0

「 http://xxx.x.xx.xx:8180/admin/upload/advert/advert_img.jpg」のような 3 つの URL があります。

これらはリモート サーバーの画像です。

そして、私はUIImageViewを持っています、私は使いたいです:

_imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 504.0, 320.0, 40.0)];
NSArray *images = [NSArray arrayWithObjects:[UIImage imageNamed:@"advert_img"],[UIImage imageNamed:@"img01"],[UIImage imageNamed:@"img02"], nil];
_imageView.animationImages = images;
_imageView.animationDuration = 15;
[_imageView startAnimating];

これらの写真を表示します。これどうやってするの?どうもありがとうございました。

4

1 に答える 1

-1

これを試して :

    NSArray *frames = [NSArray arrayWithObjects:
       [UIImage imageWithName:@"advert_img.png"],
       [UIImage imageWithName:@"img01.png"],
       [UIImage imageWithName:@"img02.png"],
       nil];

       UIImageView *animatedIMvw = [[UIImageView alloc] init];
       animatedIMvw.animationImages = frames;
       [animatedIMvw startAnimating];
于 2013-03-30T12:46:54.547 に答える