首页
学习
活动
专区
圈层
工具
发布

iOS UIButton解读

UIButton控件是应用界面中常用的一个控件,用法总结: 一、初始化 UIButton的初始化一般使用其类方法,+ (id)buttonWithType:(UIButtonType)buttonType...)state; //设置标题和显示当前标题的按钮状态  - (void)setTitleColor:(UIColor *)color forState:(UIControlState)state; //...设置标题颜色和显示当前颜色的按钮状态  - (void)setTitleShadowColor:(UIColor *)color forState:(UIControlState)state;  //设置标题阴影颜色及显示时的状态...- (void)setImage:(UIImage *)image forState:(UIControlState)state;  //设置按钮图片和显示当前图片时的状态 - (void)setBackgroundImage...:(UIImage *)image forState:(UIControlState)state; //设置按钮背景图片和显示图片时的状态 - (void)setAttributedTitle:(NSAttributedString

88920
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券