ios - Let UIImageView in header section of UITableView overlap the content cells -
i have header section in table view logo , name. now, want logo overlap image in content cell below. have attached example of below :-
heres i've tried far, i've tried make header section half size of (logo + upper , lower padding) -- cuts logo in half
i tried cliptobounds :-
func tableview(tableview: uitableview, heightforheaderinsection section: int) -> cgfloat { return 33.0 } func tableview(tableview: uitableview, viewforheaderinsection section: int) -> uiview? { let cell = tableview.dequeuereusablecellwithidentifier("headercell") as! feedtableviewheadercell cell.designernamelabel.text = "vitamin a" cell.designerlogoimageview.image = uiimage(named: "zeko_small") cell.designerlogoimageview.clipstobounds = false cell.contentview.clipstobounds = false return cell }
you may set imageviewframeheight
greater tableviewheaderheight
, in tableheaderviewcell
, set
tableheaderviewcell.contentview.clipstosubview = no.
this'll in getting result.
Comments
Post a Comment