Upasna Sharma Upasna Sharma - 1 year ago 171
iOS Question

Quickblox Profile Pic issue in swift

I am developing a

application using
api for chat . I am able to send and receive messages but profile picture of sender is missing. if anyone knows Please help me that How we fetch the sender
with messages.

Answer Source

You can get profile pic using below code :

NSUInteger userProfilePictureID = user.blobID; // user - an instance of QBUUser class

// download user profile picture
[QBRequest downloadFileWithUID:userProfilePictureID successBlock:nil statusBlock:nil errorBlock:nil];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download