ios - UITableViewCell display under other view -


i cannot convince uitableviewcell display under view per attached image. happens when embed uitableview uiviewcontroller.

vouchertableviewcell *cell = [tableview dequeuereusablecellwithidentifier:@"vouchertableviewcell" forindexpath:indexpath];  if (cell == nil) {     cell = [[vouchertableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:@"vouchertableviewcell"]; } 

image 1 before scrolling up.

enter image description here

image 2 problem.

enter image description here

just try in viewdidload code

self.edgesforextendedlayout = uirectedgenone; self.tableview.contentinset = uiedgeinsetsmake(0, 0, yourtopiew.height, 0);  

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -