Setting the Appearance of a Button’s Border

你可以通过更改按钮的形状和阴影来控制按钮的边框。请注意,如果isBordered返回false,则边框不会出现。使用setBordered:更改其值。

要更改边框的形状,请使用setBezelStyle:更改按钮的边框类型。边框类型有两个主要类别。

Setting the Appearance of a Button’s Border - 图2