我有一個對象陣列設置是這樣的:如何使用對象的對象陣列內部在物鏡Ç
NSMutableArray *image_view_array;
IBOutlet UIImageView *image_view_1, *image_view_2, *image_view_2;
和:
image_view_array = [[NSMutableArray alloc] initWithCapacity:3];
[image_view_array addObject:image_view_1];
[image_view_array addObject:image_view_2];
[image_view_array addObject:image_view_3];
如何訪問圖像視圖陣列的圖像? 我嘗試這些:
image_view_array[0].image
[image_view_array objectAtIndex:0].image
,但它不工作。 謝謝!
當你說它不起作用時,你會得到什麼錯誤? –
代碼中的每個代碼片段都位於哪裏? – vikingosegundo