首先选择button的type为customer
然后设置背景色
这个时候会发现界面显示的是直角矩形
此时在界面代码的界面初始化方法中 增加此矩形的圆角设置
first of all import this in your .m file -
#import <QuartzCore/QuartzCore.h>
and then in your loadView method add following lines
yourButton.layer.cornerRadius = 10; // this value vary as per your desire
yourButton.clipsToBounds = YES;
本文介绍如何在iOS应用中调整button的外观,包括设置背景色及实现圆角与剪切边效果,通过引入QuartzCore库并修改界面初始化方法,轻松打造美观的UI组件。
214

被折叠的 条评论
为什么被折叠?



