UIButton 使用注意事项
来源:互联网 发布:新唐单片机官网 编辑:程序博客网 时间:2024/05/29 15:35
UIButton 使用注意事项:
1 当UIButton结合Mansory使用时,注意使用
- (void)setBackgroundImage:(nullable UIImage *)image forState:(UIControlState)state
方法,
因为经由这个方法设置的图片会紧粘着UIButton的边界,也就是 @property(nonatomic) UIEdgeInsets contentEdgeInsets UI_APPEARANCE_SELECTOR; // default is
的属性将不能生效,且后期使用很麻烦;
所以,改用
- (void)setImage:(nullable UIImage *)image forState:(UIControlState)state;
则无此问题,这样就可以达到UIButton点击区域比image要大的效果。
0 0
- UIButton 使用注意事项
- UIButton 使用
- 使用UIButton
- ios UIButton点击事件(@selector)注意事项
- UIButton创建不能使用UIButton alloc
- UIButton的使用
- iphone开发 UIButton使用
- UIButton的使用
- UIButton 使用全面解析
- iphone开发 UIButton使用
- UIButton 使用的感受
- UIButton使用介绍
- UIButton使用详解
- UIButton 使用全面解析
- UIButton使用状态
- UIButton的使用
- UIButton的简单使用
- UIButton 使用全面解析
- poj 1463 Strategic game 树的最小点覆盖
- C指针声明解读之左右法则
- shell 常用命令之四 sed
- Ubuntu 下 Apache2服务器的搭建
- RedHatLinux安装桌面
- UIButton 使用注意事项
- 构造方法
- linux下syslog使用说明
- matlab BP神经网络
- Permission denied: user=root, access=EXECUTE, inode="/tmp/hadoop-yarn":grid:supergroup:drwx------
- TextView的常用属性
- JSON使用ReferenceLoopHandling忽略其引用循环值
- 绝对定位+div+css来控制版面是非常好的
- jsp页面编辑匹配下拉选中