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
Post a Comment