1
Kinvey의 이미 등록 된 사용자를 업데이트하는 데 어려움을 겪고 있습니다. 나는 새로운 사용자 등록이 코드를 사용하는 예를 들어Kinvey의 기존 사용자 업데이트
:
KCSUser.userWithUsername(
"kinvey",
password: "12345",
fieldsAndValues: [
KCSUserAttributeEmail : "[email protected]",
KCSUserAttributeGivenname : "Arnold",
KCSUserAttributeSurname : "Kinvey"
],
withCompletionBlock: { (user: KCSUser!, errorOrNil: NSError!, result: KCSUserActionResult) -> Void in
if errorOrNil == nil {
//was successful!
let alert = UIAlertView(
title: NSLocalizedString("Account Creation Successful", comment: "account success note title"),
message: NSLocalizedString("User created. Welcome!", comment: "account success message body"),
delegate: nil,
cancelButtonTitle: NSLocalizedString("OK", comment: "OK")
)
alert.show()
} else {
//there was an error with the update save
let message = errorOrNil.localizedDescription
let alert = UIAlertView(
title: NSLocalizedString("Create account failed", comment: "Create account failed"),
message: message,
delegate: nil,
cancelButtonTitle: NSLocalizedString("OK", comment: "OK")
)
alert.show()
}
}
)
은 어떻게 KCSUserAttributeGivenname 또는 KCSUserAttributeSurname 업데이트에 대한 갈 것입니다.
도움을 주시면 감사하겠습니다. 감사합니다.