UIButton 如何设置字体颜色

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

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