これが私が私のものに使用したものです
私は私のviewDidLoad
方法で私のものをやった
//use your URL
NSData *picOne = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://sumptin.com/images/sumptin.jpg"]];
NSData *picTwo = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://sumptin.com/images/sumptin.jpg"]];
NSData *picThree = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://sumptin.com/images/sumptin.jpg"]];
NSData *picFour = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://sumptin.com/images/sumptin.jpg"]];
NSData *picFive = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://sumptin.com/images/sumptin.jpg"]];
//then convert data to actual pictures
UIImage *onePic = [UIImage imageWithData:picOne];
UIImage *twoPic = [UIImage imageWithData:picTwo];
UIImage *threePic = [UIImage imageWithData:picThree];
UIImage *fourPic = [UIImage imageWithData:picFour];
UIImage *fivePic = [UIImage imageWithData:picFive];
//then SHABAM!
slideShow.animationImages = [NSArray arrayWithObjects:
onePic,
twoPic,
threePic,
fourPic,
fivePic,
nil];
slideShow.animationDuration = 60.00f;
slideShow.animationRepeatCount = 0;
[slideShow startAnimating];
これが役立つことを願っています...この質問は1年前に投稿されたので見てください:)