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.
image 2 problem.
just try in viewdidload code
self.edgesforextendedlayout = uirectedgenone; self.tableview.contentinset = uiedgeinsetsmake(0, 0, yourtopiew.height, 0);
Comments
Post a Comment