
UIButton(按钮)
梦醒梦飞翔
做事有始有终,不轻言放弃。
展开
-
UIButton的使用
//创建圆角button UIButton *button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect]; //指定button的位置和大小 button.frame = CGRectMake(10, 10, 75, 75); //给button设置标签,用来辨别点击的是哪个button,常用在原创 2015-04-08 15:46:37 · 553 阅读 · 0 评论 -
UIButton设置圆角和边框及边框颜色
[box.actionButton.layer setMasksToBounds:YES]; [box.actionButton.layer setCornerRadius:10.0]; //设置矩形四个圆角半径 //边框宽度 [box.actionButton.layer setBorderWidth:1.0]; //边框颜色 CGColorSpaceRe原创 2015-04-08 15:37:59 · 2054 阅读 · 0 评论