【发布时间】:2011-09-25 08:50:18
【问题描述】:
有没有一种简单的方法可以在 UISegmentedControl 项上获得非圆角?
我通过使用条形样式的代码创建了一个自定义的瞬时 UISegmentedControl 按钮,但我希望有尖角的方形(即非圆角)??
这很容易通过代码实现,还是我必须继承 UISegementedControl ??
我尝试访问 UISegementedControl 按钮的 layer 属性来修改 CornerRadius 设置,但这根本没有效果 :)
提前致谢!
【问题讨论】:
标签: iphone cocoa-touch ios4 uibutton uisegmentedcontrol