tableview - cell separated overlapping overlapping cell iOS -


i have table view in iphone app. have 2 dynamic custom cells crated , cell seperater in between both of them. storyboard shows cells separater coded in app. separater overalpping second cell , covering part of top including text. can fix overlap?

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     uitableviewcell *c=nil;     if (indexpath.row==0) {         static nsstring *cellidentifier = @"areacell";         lsareacell *cell=[tableview dequeuereusablecellwithidentifier:cellidentifier forindexpath:indexpath];         aplarea *area=[self getareaforindexpath:indexpath];         cell.areaimageview.image=[uiimage imagenamed:area.imagename1];         c=cell;     }     else     {         static nsstring *quotecellidentifier = @"quotecellidentifier";          aplquotecell *cell = (aplquotecell*)[tableview dequeuereusablecellwithidentifier:quotecellidentifier];         cell.backgroundview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"binding_light"]];          cell.subarea = [self getsubareaforindexpath:indexpath];         c=cell;          //i put in seperator on aug 14.  supposed released!!!         uiview *cellseparator = [[uiview alloc] initwithframe:cgrectmake(0, 0, 320 ,35)];         [cellseparator setautoresizingmask:uiviewautoresizingflexibleleftmargin |          uiviewautoresizingflexiblerightmargin |          uiviewautoresizingflexiblewidth];         [cellseparator setcontentmode:uiviewcontentmodetopleft];         [cellseparator setbackgroundcolor:[uicolor colorwithpatternimage:[uiimage imagenamed:@"spacer"]]];         [cell addsubview:cellseparator];         // self.view.backgroundcolor = [uicolor colorwithpatternimage:[uiimage imagenamed:@"binding_light"]];     }     return c; } 

i assuming want custom separator in between both of cells?

if can need first set tableview separator style shown

[self.tableview setseparatorstyle:uitableviewcellseparatorstylenone]; 

then must incorporate enough space in table view cells accommodate separator.you can either increase height of each cell or make separator smaller fix overlap. these changes occur in initwithframe on separator or cellwithheight tableview


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -