【发布时间】:2011-10-27 07:19:48
【问题描述】:
我正在尝试如下绘制自定义按钮框架:
UIBezierPath *stroke = [UIBezierPath bezierPathWithRoundedRect:self.bounds
cornerRadius:RECT_CORNECR_RADIUS];
[stroke stroke];
但由于某种原因,拐角曲线看起来比侧面更思考。如果您查看 UIButton 的默认框架,它非常统一。 A 是 UIButton,B 是自定义按钮。
任何想法如何使它更像 UIButton。
【问题讨论】:
标签: ios uibutton custom-controls uibezierpath