taiyang2014

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];

posted on 2015-12-04 17:19  taiyang2014  阅读(181)  评论(0编辑  收藏  举报

导航