//按钮边框宽度

    [_numberButton.layer setBorderColor:[UIColor colorWithRed:28/255.0 green:162/255.0 blue:66/255.0 alpha:1].CGColor];

    [_numberButton.layer setBorderWidth:1];

    

    [_numberButton.layer setMasksToBounds:YES];

    

    _numberButton.backgroundColor = [UIColor whiteColor];

    //设置圆角

    _numberButton.layer.cornerRadius = 5;

    

    _numberButton.clipsToBounds = YES;

    

    _numberButton.titleLabel.font = [UIFont systemFontOfSize:13];

posted on 2015-11-08 16:05  拿起放不下  阅读(992)  评论(0编辑  收藏  举报