iphone - UITableView reloaddata problem when having a MKMapview in a tableview cell -


i writing app can load data from web, put data in grouped uitableview, put data in first section, , meantime, want plot these data on mapview in second section of table.

i managed implement these in tableview, , works fine. add refresh button on navigation bar, if press refresh button, app fetch data web again , reload tableview new data.

here comes problem, when refresh data , call method reloaddata, table cells in both section refreshed, mean, map re-loaded , animated zoom in world map interest region every time press refresh button. want re-plot annotations based on refreshed data, not map.

i think problem come call of [self.tableview reloaddata] method. there way reload data first section rather sections in grouped tableview?

any suggestion or comment appreciated! thanks!

you can use - reloadrowsatindexpaths:withrowanimation: (in uitableview class reference) that. need create nsarray of index path/paths of row/rows want update , reload those


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -