摘要: 第一、UIButton的定义 UIButton *button=[[UIButton buttonWithType:(UIButtonType); 能够定义的button类型有以下6种, typedef enum { UIButtonTypeCustom = 0, 自定义风格 UIButtonTyp 阅读全文
posted @ 2016-03-08 23:10 远方的狼 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //1.初始化视图 确定矩形的坐标(x,y) 宽高 self.myView=[[UIView alloc] initWithFrame:CGRectMake(100, 50, 200, 400)]; //2.设置背景色 self.myView.backgroundColor=[UIColor bla 阅读全文
posted @ 2016-03-08 14:27 远方的狼 阅读(957) 评论(0) 推荐(0) 编辑