Here in QuickBlox we get the QBUUser instance of each user registered with the QuickBlox . But i did not found any property to set the avatar url for profile photo and update it. I was thinking to set url in property customData . Is this right way to set avatar Url or if any other way exist let me know. Thanks in Advance.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
Finally i satisfied with customData property in QBUUser.
I just created a dictionary and set url in that dictionary within some Key.
Than created its JSON string and set it in the QBUUser property customData and updated it and it worked. Here is its small code snippet.
And in success block i got this response
ID:qbID
created at:2014-12-26 13:04:56 +0000 updated at:2014-12-26 13:05:02 +0000
externalUserID:45454 blobID:0 facebookID:(null) twitterID:(null)
full name:blabla
email:blabla@gmail.com
login:blabla@gmail.com
phone:9999999999
tags:(null)
lastRequestAt:2014-12-26 13:39:24 +0000
customData:{"user_picture":"myprofileurl.png"} website:(null)
This is the right way
Also there is a blobId field to set the id of file from Content module
Here is an example how to do it http://quickblox.com/developers/SimpleSample-users-ios#Updating_a_profile_picture_.28avatar.29