• 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];
  • 相关阅读:
    Hello World基于.net framework中CLR的执行
    MVN常用命令
    Git常用命令
    Markdown常用语法
    计算机专用英语词汇
    Windows DiskPart
    字符集过滤器
    SSHkey
    书名
    redis
  • 原文地址:https://www.cnblogs.com/tian-sun/p/5019974.html
Copyright © 2020-2023  润新知