ios - online and offline status users in uitableview quickblox -
i found tuto explain how offline/online status 1 users purpose status of list of users that's why when tried put
[qbusers userwithid:usercell.id delegate:self];  in cellforrow many responses webservice don't know how fix that.
to realtime online/offline status of users can use contactlist chat api http://quickblox.com/developers/simplesample-chat_users-ios#contact_list
you should create datasource table, example array of users.
when receive update status of user callback - should update datasource, example this
- (void)chatdidreceivecontactitemactivity:(nsuinteger)userid isonline:(bool)isonline status:(nsstring *)status{      user *user = [self.mydatasource userwithid:userid];      user.online = isonline;       [self.tableview reloaddata]; } 
Comments
Post a Comment