Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法将 UIButton 的边框宽度设置为不同的值,类似于 CSS like border-width: 0 1px 0 0or border-right-width: 1px?
border-width: 0 1px 0 0
border-right-width: 1px
没有标准UIButton,没有。您必须使用自定义按钮并创建与您想要的设计相匹配的图像。
UIButton
不,不可能使用 API