iphone - Drawing on a UITableViewCell backgroundView using CoreGraphics -


i have subclass of uitableviewcell need draw custom backgroundview cell. implementing drawrect:, can draw view fine, behind tableview , tableviewcells.

in order use cg draw custom backgroundview, need make separate uiview subclass drawing in , set cell's backgroundview?

thanks!

edit: screenshot

i want blue drawn instead of white. in place of white. or @ least on top of it. enter image description here

i drawing shadow behind cell using ca, , have shadow behind view drawing.

you need set background of contentview.

mycell.contentview.backgroundcolor = [ uicolor greencolor ]; //  

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -