objective c - Drawing a rounded rectangle with one side rounded -


possible duplicate:
ios draw rectagle curved ends

in objective-c (an iphone app), how write function takes in cgrect , draws one-sided rounded rectangle. 1 sided rounded rectangle looks like:

ooooooooooooooo o               o o                 o o                o o               o ooooooooooooooo 

that drawing hard see, basically, it's pencil, not pointy @ round side. use combination of cgcontext methods this. can provide code?

uibezierpath provides number of methods constructing sorts of paths. if that's not enough, coregraphics (aka quartz) provides complete set of path operations. either of these solutions more sufficient drawing path you've described.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -