解决方案 »

  1.   

        UIButton *getResultBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        [getResultBtn setTitle:@"Test" forState:UIControlStateNormal];
        
        [getResultBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        getResultBtn.layer.borderWidth = 1;
        getResultBtn.layer.cornerRadius = 10.0;
        getResultBtn.layer.masksToBounds = YES;
        getResultBtn.backgroundColor = [UIColor colorWithRed:92/255.0 green:184/255.0 blue:92/255.0 alpha:1];
        getResultBtn.layer.borderColor = [[UIColor colorWithRed:76/255.0 green:174/255.0 blue:76/255.0 alpha:1] CGColor];
        getResultBtn.frame =CGRectMake(220, 70, 80, 45);
        [getResultBtn addTarget:self action:@selector(getResultBtnClick:)forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:getResultBtn];修改cornerRadius,调整圆角半斤。 其他颜色什么的也自己看着修改就好了