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
Post a Comment