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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -