IOS UIButton的常用属性和方法

上传:baidu_44569 浏览: 9 推荐: 0 文件:PDF 大小:61.93KB 上传时间:2021-04-07 07:03:05 版权申诉
UIButton是一个标准的UIControl控件 一、创建 两种方法: 1. 常规的 initWithFrame UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 80, 44)]; 对代码创建View(UIControl继承自UIView,所以也是view)不甚了解的请参看:《有关View的几个基础知识点》 2. UIButton 的一个类方法(也可以说是静态方法)buttonWithType UIButton *btn2 = [UIButton buttonWit
上传资源
用户评论