//实现一个点击按钮的方法,方法的行为用IBAction修饰,返回值为void
-(IBAction)clikRedButton{
//获得label对象,操作UILabel的属性,实现label里面文字颜色的修改以及其他改变
self.label.textColor = [UIColor redColor]; //改变文本字体颜色
self.label.textAlignment =NSTextAlignmentCenter; //改变文本在label中的位置
self.label.backgroundColor =[UIColor greenColor]; //改变label的背景颜色
self.label.text = @"天王盖地府"; //改变label文本内容
self.label.font = [UIFont systemFontOfSize:25.f]; //改变文本字体大小