簡體   English   中英

分配數組對象時出現預期的標識符錯誤

[英]Expected Identifier error while assigning array object

APIElement *ap=[[APIElement alloc]init];
ap=[feeds objectAtIndex:[indexPath.row]];

上面是我的代碼段,我想要將feeds(NSMUTABALEARRAY)中的對象獲取到ap(即APIElement的對象)中,但是卻給了我類似“ Expected Identifier”的錯誤。

您必須從indexPath.row中刪除框。

ap=[feeds objectAtIndex:indexPath.row];

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM