uitableview - Mark tableview cell as completed when user user returns from subview -
i writing application teaches user in lessons separated sections. have tableview filled custom tableview cells have check mark want unhide when user completes lesson , lesson view popped table. there way viewwillappear called can unhide checkmark label in specific tableview cell?
i store information in nsdictionary
. in case, when user loads lesson, can add bool value nsdictionary mean lesson complete, in cellforrowatindexpath:
delegate, add this:
if([plistdict objectforkey:@"kcomplete"] == yes){ cell.accessorytype = uitableviewcellaccessorycheckmark; }else{ cell.accessorytype = uitableviewcellaccessorynone; }
Comments
Post a Comment