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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -