我知道如何在vkSdkAccessAuthorizationFinishedWithResult方法中获取用户电子邮件地址。我如何获取他的头像图片和其他个人资料信息?

我假设我需要为此使用VKRequest。
不幸的是,我没有找到有关VK iOS SDK的快速文档。

最佳答案

好的,我终于找到了解决方案-您需要在vkSdkAccessAuthorizationFinishedWithResult方法中添加此代码

let request:VKRequest = VKRequest(method: "users.get", andParameters: ["fields":"photo_50", "bdate"], andHttpMethod: "GET" )

request.executeWithResultBlock(
    {
        (response) -> Void in

            println(response.json)

    }, errorBlock: {
        (error) -> Void in
        println("error")

})

10-08 05:32