需要在UITableView中从FirstViewController到SecondViewController完成Facebook帖子的历史

时间:2013-01-12 14:38:26

标签: objective-c xcode facebook uitableview ios6

我在第一个视图控制器中使用iOS 6中的本机Facebook集成对话框。我希望第一个视图控制器上的所有帖子的历史记录都在UITableViewCell的第二个视图控制器中。但是我无法弄清楚如何将它们两者联系起来以便它可以获得饲料。

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 8;
}

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
    {
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
        if (cell==nil) {

        }

    if (FBNativeDialogResultSucceeded) {

    cell.textLabel.text=@"someone posted on facebook";
    }

    return cell; 

}

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:-1)

您可以在secondviewcontroller中编写通知。如果在firstviewcontroller中发布完成,则发布通知.Secondviewcontroller recived notification,theb tableview in secondviewcontroller reloaddata。