objective c - How to draw a rounded rectangle with a SOFT EDGE on the iPhone? -


i need overlay text on image. because image has lot of detail, need make text more legible.

what draw semi-transparent white rounded rectangle soft edge below text.

i've tried painting white rounded rectangle white shadow, doesn't give me quite effect want. results in hard edge between rounded rectangle , shadow. smooth transition.

any ideas?

i've done similar cggradient , pain , final result didn't great. easier way create edges partially transparent png using - (uiimage *)stretchableimagewithleftcapwidth:(nsinteger)leftcapwidth topcapheight:(nsinteger)topcapheight

transparent graphics expensive, may excessively degrade performance if have lot of labels, if you've got few (and don't move or otherwise require lots of redraws) you'll fine.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -