我有三個類,我只是在tableView中顯示我的Facebook朋友。我成功地將我的所有朋友的名字都放在friendArray中。我必須在FriendList類中顯示朋友名稱。解析,時間安排,表格視圖重新載入數據
1)RootViewController的類
2)好友列表類
3)的Facebook交互類
我的問題是:提取(解析)完成之前
我的好友列表類的負載。並在我的陣列friendArray計數爲0.(因爲(提取)解析不完整)。在我的控制檯陣列中,計數爲150.
friendListObject.friendArray = parsedArray; // where get data
-(void)butoonClicked
{
FBFeedPost *post = [[FBFeedPost alloc]initWithFriendList:self.imageView.image];
[post publishPostWithDelegate:self];
FriendList *friendList=[[FriendList alloc]initWithNibName:@"FriendList" bundle:[NSBundle mainBundle]];
[[self navigationController] pushViewController:friendList animated:YES];
}
@ArunGJ ....謝謝。 – user1479423