ios - How to smoothly allow the sending of messages in my chat app? -


i have chat application uses parse back-end. let's there's conversation looks in table far:

i said: hello

he said: hey there

now, if want type in , click send, table go blank bit , show 3 messages. how can achieve affect in smoother way? example, when hit send, message pops under other messages without going blank because refreshing data , adding new message.

when send button pressed, among other code, these 2 pieces of code run:

    self.messagesarray.append(messageobject)     self.loadobjects() 

the table handled class extends pfquerytableviewcontroller. have ideas?

trivially can change using loadobjects:clear: instead of loadobjects can specify table isn't cleared.

alternatively, , more efficiently addition of users own messages, can add item objects array (a mutable copy of) , set new array objects.

if these options don't obtain full effect you're after need stop using pfquerytableviewcontroller have full control on how table view managed.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -