0
我正在將圖像加載到自定義單元格中,並在XML中創建了一個數組,我將其設置爲我的筆尖文件上的UIImageView。將圖像從多維數組加載到UIImageView中
我的數組被建立起來,以totalArray,然後我做的,我cellForRowAtIndexPathT如下:
newObj1=[totalArray objectAtIndex:indexPath.row];
aCell.lblRouteText.text = newObj1.routeText;
而下面的加載我的形象的作品(靜態):
UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://imageurl.jpg"]]];
aCell.imgRoute.image = image;
然而,當我試圖把我的陣列使用以下內容:
UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[newObj1.routeImage]]];
我得到一個錯誤的標識符e xpected
任何提示?
湯姆
d '哦,太簡單了。感謝那 – TMB87