我从API获取URL图像。我已经将UR图像存储为字符串。在这里我的问题我想显示到旋转木马。我不知道该怎么做。以下是我试过的代码。如何将我的网址图像放入旋转木马?
for(int i=0;i<hotelIMAges.count;i++)
{
NSDictionary *images=[hotelIMAges objectAtIndex:i];
NSString *Images= [images objectForKey:@"Imagepath"];
[ImageARRAy addObject:Images];
} //Here I have stored all the images into string..(https://***.jpg)
Carousel *carousel = [[Carousel alloc] initWithFrame:CGRectMake(0, 0,300, 262)];
[carousel setImages:ImagesARRAy];
我使用下面的两行轮播代码后所有的图像下载..我写在按钮内...在这里我的问题是我想我的网址图像(https://somestrings.jpg)成(一些string.jpg)格式 – Kavitha
在我使用像这样[carousel setImages:[NSArray arrayWithObjects:@“hotel.jpg”,@“hotel2.jpg”,@“hotel3.jpg”,@“hotel4.jpg”,@ “hotel5.jpg”,无]];现在我得到的格式为 – Kavitha
的响应是你使用任何第三方库Carousel。如果你这样做,请分享我的链接。 – luckyShubhra