如何为iPhone应用程序创建弯曲的UIButton
问题描述:
我想创建弯曲的UIButtons。如需演示,请查看此图片。
I want to create UIButtons which are curved. For demo look at this image.
我不想创建确切的按钮,但它们会像这个按钮一样有曲线。是否可以在iOS中创建这样的按钮?
I don't want to create the exact buttons, but they will have curve like this buttons. Is it possible to create such buttons in iOS?
谢谢。
答
查看 OBShapedButton ,
是非矩形形状的UIButton子类。
Have a look at OBShapedButton, its a UIButton subclass for non-rectangular shapes.