button设置边宽和圆角

   UIButton *meifuButton = [UIButton buttonWithType:UIButtonTypeSystem];
        [meifuButton setTitle:@"分享到美肤" forState:UIControlStateNormal];
        [meifuButton setTitleColor:REDSELECTCOLORE forState:UIControlStateNormal];
        meifuButton.frame = CGRectMake(SCREEN_WIDTH - 100, 20, 90, 25);
        meifuButton.layer.cornerRadius = 8; //设置半径
        meifuButton.layer.borderWidth = 1//设置边宽
        meifuButton.layer.borderColor = REDSELECTCOLORE.CGColor; //设置边部的颜色
        [_shareContent addSubview:meifuButton];
原文地址:https://www.cnblogs.com/tian-sun/p/4849790.html