2015年7月1日

摘要: UIButton是ios中用来响应用户点击事件的控件.继承自UIControl 1.创建控件UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];2.设置属性 (1).为按钮上颜色button.background... 阅读全文
posted @ 2015-07-01 21:39 少停cnblogs 阅读(240) 评论(0) 推荐(0) 编辑
 
摘要: UITextField 继承自UIControl,他是在UILabel基础上,对了文本的编辑.可以允许用户输入和编辑文本 UITextField的使用步骤 1.创建控件UITextField *textField=[[UITextField alloc]initWithFrame:... 阅读全文
posted @ 2015-07-01 21:07 少停cnblogs 阅读(274) 评论(0) 推荐(0) 编辑
 
摘要: UILabel:标签 继承自UIView ,在UIView基础上扩充了显示文本的功能.(文本框) UILabel的使用步骤 1.创建控件UILabel *aLabel=[[UILabel alloc]initWithFrame:CGRectMake(10, 100, 300, 10... 阅读全文
posted @ 2015-07-01 19:38 少停cnblogs 阅读(217) 评论(0) 推荐(0) 编辑