ios - How to get customize table cell from UIPopoverController -


the popover uitableviewcontroller, , table-cell's class customize class 'myoptionstableviewcell', has 4 uilables.

when table load , called 'cellforrowatindexpath' method, want bind customize data, code not work.

the code is:

     - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     static nsstring *cellidentifier = @"optioncell";     myoptionstableviewcell *cell =(myoptionstableviewcell*) [tableview dequeuereusablecellwithidentifier:cellidentifier];      if (cell == nil) {         cell =[[myoptionstableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:cellidentifier];     }      prodoption *currentoption  = [self.options objectatindex:indexpath.row];      //this 4 line code not work     cell.lbltitle.text = currentoption.title;     cell.lblpoints.text = currentoption.dig;     cell.lblstatus.text = currentoption.status;     cell.lbldescription.text = currentoption.description;      //this lines code worked     //cell.textlabel.text = currentoption.title;      return cell; } 

thanks help.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -