UIButton 如何设置字体颜色

    UIButton *temp = [UIButton buttonWithType:UIButtonTypeRoundedRect];   
               
            [temp setTitle:@“test”  forState:UIControlStateNormal];               
            [temp setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];  

编程技巧