UIButton类01

来源:互联网 发布:铜陵行知中学 编辑:程序博客网 时间:2024/06/05 21:06

学习总结—NO.4_UIButton01

http://blog.csdn.net/chinaliuyan

今天学习了UIButton类创建Button控件

一、首先扩展下UIFont类:

[UIFont familyames]; 返回值类型数组

UIFont fontWithName:(NSString *) size:(CGFloat) //设置字体的名称和大小

效果图:

二、下面是UIButton的学习

写一个创建UIButton的方法(返回值 UIButton*)

 

给按钮添加事件

buttonClicked 方法

本文章介绍的不齐全,大家可以发表评论补充或发送电子邮件给作者。

Mailsuperdeveloper@qq.com