iOS 创建一个内外角都有弧度的圆角button

2015-03-25 0 837
iOS  创建一个内外角都有弧度的圆角button
   UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(2, 2, 100, 100)];
    btn.backgroundColor = [UIColor redColor];
    btn.layer.cornerRadius = 3;
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(99, 99, 104, 104)];
    view.backgroundColor = [UIColor blueColor];
    
    view.layer.cornerRadius = 3;
    [self.view addSubview:view];
    [view addSubview:btn];

遇见资源网 objective-c iOS 创建一个内外角都有弧度的圆角button http://www.ox520.com/16569.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务