ios - Loading data from api to tableview -
i need load large set of messages backend api tableview ios chat app.each time reload data whole list populated.how more without loading whole list ? load last 20 messages , when user scrolls fetch next 20(last 40 messages) backend. appreciated. thanks
i dont know how go this. imagine call api
- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath
in way call api every time cell on screen. problem approach how ever calling api every time cell goes in , out of screen.
Comments
Post a Comment