backendless update current user object

Update current user object in iOS BTW its readonly proprty

You can update the user object which would be stored in UserService.currentUser by calling any of the update methods of the UserService object. https://github.com/Backendless/ios-SDK/blob/master/SDK/backendlessAPI/Classes/UserService/UserService.h

For instance, if you want to update user.propertyName with newValue, you can do something like this:

if let usr = Backendless.sharedInstance().userService.currentUser {
     usr.setProperty("propertyName", object: newValue)
     Backendless.sharedInstance().userService.update(usr,
         response: { newUser in
             let updatedUser = Backendless.sharedInstance().userService.currentUser
             print(updatedUser) // updatedUser and newUser should be the same now
             print(newUser)
         }, error: { err in
             print(err.message)
     }) 
}

Thank you, Elena, for your comment!

But looks like Anan should update the latest Backendless SDK from CocoaPods (3.0.22 release) or from github (CommLibiOS & backendless libs with them include folders).