FBProfilePictureView未显示个人资料照片

时间:2013-06-05 06:51:04

标签: ios objective-c

我在Facebook的教程中有以下方法。

但是,个人资料照片不会显示。

我可以在userNameLabel中看到user.name,并查看日志中正确设置的self.userProfilePictureView.profileID。

- (void)populateUserInfo{
    AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
    [appDelegate requestUserData:^(id sender, id<FBGraphUser> user) {
        self.userNameLabel.text = user.name;
        self.userProfilePictureView.profileID = [user objectForKey:@"id"];
        NSLog(@"%@", self.userProfilePictureView.profileID);
    }];
}

1 个答案:

答案 0 :(得分:0)

您是否在AppDelegate的[FBProfilePictureView class]的第一行添加了didFinishLaunchingWithOptions