我需要更改MPMediaPickerController项目的标签颜色,在iOS 7上使用Xcode5,我能做什么?
我创建MPMediaPickerController的代码是:
- (IBAction)addSongs:(id)sender {
MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];
picker.delegate = self;
picker.allowsPickingMultipleItems = YES;
}我试过这个,但不起作用:https://gist.github.com/acidlemon/1955332
示例:


提前谢谢。
发布于 2014-03-02 22:40:13
使用外观代理更改选项卡栏的tintColor,例如:
[[UITabBar appearance] setTintColor:[UIColor yellowColor]];要更改所有视图(包括标签)的tintColor,可以在AppDelegate.m文件中执行以下操作:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIView appearance] setTintColor:[UIColor yellowColor]];
return YES;
}https://stackoverflow.com/questions/22106313
复制相似问题