iOS 给Button加边框、切圆角、

释放双眼,带上耳机,听听看~!
UIButton *skipButton = [[UIButton alloc]initWithFrame:CGRectMake(DDScreenW*0.8, DDScreenW*0.1, 60, 25)];
[skipButton setTitle:@"跳过" forState:UIControlStateNormal];
[skipButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
[skipButton setBackgroundColor:[UIColor whiteColor]];
[skipButton setTitleColor:BLUE_COLOR forState:UIControlStateNormal];
[skipButton.layer setCornerRadius:(skipButton.frame.size.height * 0.5)];
skipButton.layer.borderColor = [BLUE_COLOR CGColor];
skipButton.layer.borderWidth = 1.5f;
[skipButton addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
[self addSubview:skipButton];

人已赞赏
iOS文章

iOS swift 模糊和圆图形特效

2019-10-14 16:01:28

iOS文章

iOS -UIView的用法

2019-10-14 17:13:47

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
有新消息 消息中心
搜索