ios - Setting Table View Cell Image -


i've set image cells in table view, lines dividing cells aren't showing. have done wrong?

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     static nsstring *mbtableidentifier = @"simpletableitem";     uiimageview *image = [[uiimageview alloc]init];     image.image = [uiimage imagenamed:@"barbutton.png"];      uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:mbtableidentifier];      if (cell == nil)     {         cell = [[uitableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:mbtableidentifier];         cell.textlabel.font=[uifont systemfontofsize:16.0];     }      // cell.backgroundview = [[customcellbackground alloc] init];     cell.selectedbackgroundview = [[customcellbackground alloc] init];     cell.textlabel.backgroundcolor = [uicolor clearcolor];     cell.textlabel.highlightedtextcolor = [uicolor darkgraycolor];     cell.textlabel.textcolor = [uicolor whitecolor];     cell.backgroundview = image;      cell.textlabel.text = [mbtabledata objectatindex:indexpath.row];     return cell; } 

edit: i've logged separator style , color

2013-05-20 07:28:40.392 kfbnewsroom[1274:c07] cell separator style: 2 separator color: uidevicergbcolorspace 0.67 0.67 0.67 1 2013-05-20 07:28:40.393 kfbnewsroom[1274:c07] cell separator style: 2 separator color: uidevicergbcolorspace 0.67 0.67 0.67 1 2013-05-20 07:28:40.393 kfbnewsroom[1274:c07] cell separator style: 2 separator color: uidevicergbcolorspace 0.67 0.67 0.67 1

edit: screenshot of problem enter image description here

edit: ended resolving problem adding 1 pixel line bottom of image.

go tableview properties in xib, check if separator has been set 'none'. in case, need set 'single line' drop down ..


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -