代码改变世界

随笔档案-2014年12月

UIButton的详细使用

2014-12-08 17:26 by 梦中飞翔的鱼, 193 阅读, 收藏,
摘要: //创建圆角buttonUIButton*button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect]; //指定button的位置和大小button.frame=CGRectMake(10, 10,75,75);//给button设置标签,用来... 阅读全文

UIButton设置圆角和边框及边框颜色

2014-12-08 17:25 by 梦中飞翔的鱼, 769 阅读, 收藏,
摘要: [box.actionButton.layer setMasksToBounds:YES];[box.actionButton.layer setCornerRadius:10.0];//设置矩形四个圆角半径//边框宽度[box.actionButton.layer setBorderWidth:1... 阅读全文