我從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