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 :-

enter image description here

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.

visual guide xcode 7: enter image description here


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -