ios - TableView not reloading -


i designing one-to-one chatting interface using table view. table view modified show bubbles new message arrives. new message arrives through push-notification in case. call following code in function receives message through push notification:

-(void)messagereceived: (nsstring *)message{     _message=[message retain];     [tableview reloaddata]; } 

however, seems not reload table view. if place call reloaddata in viewdidappear function, reloads fine. reloads fine, if place reloaddata call in function return type ibaction (ex: function binding button click)

what reason reloaddata not triggered through custom declared functions ?

reloaddata method called trick here didn't add incoming message datasource tableview load !


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -