ios - Updating UITableView's imageView/detailTextLabel -
i'm using uitableview display multiple rows of data: textlabel.text name, imageview show status (online/offline), detailtextlabel additional info.
ex. in cellforrowatindexpath
cell.imageview.image = [uiimage imagenamed:@"checking.png"]; cell.textlabel.text = @"name"; cell.detailtextlabel.text = @"checking...";
how can update imageview.image , detailtextlabel.text function. there uitableview method? guessing need use indexpath row target cell. perhaps assign tags each imageview , detailtextlabel?
thanks.
your better option update data in model , ask table view reloaddata
(or, if know row(s) updated, reloadrowsatindexpaths:withrowanimation:
).
this maintains integrity of data model , simplest code manage view.
Comments
Post a Comment