objective c - Checkmark not appearing in UITableView -


i have written program stores set of objects under label , labels can viewed , changed later. have written following code that(just including portions adds check mark):

- (uitableviewcell *) tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {  cell.selectionstyle = uitableviewcellselectionstylenone; //to avoid blue selection //necessary codes populate table here [tableview cellforrowatindexpath:indexpath].accessorytype = uitableviewcellaccessorycheckmark; return cell; } 

but table not showing check mark. yes, tried again commenting off cell.selectionstyle = uitableviewcellselectionstylenone;, still no use. haven't written code elsewhere unchecking checkmark made.

why setting accessory type [tableview cellforrowatindexpath:indexpath].accessorytype, since getting cell in method

- (uitableviewcell *) tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath       {          cell.selectionstyle = uitableviewcellselectionstylenone; //to avoid blue selection        //necessary codes populate table here        cell.accessorytype = uitableviewcellaccessorycheckmark; //do           return cell; } 



Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -