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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -