问题
I need change the labels colors of MPMediaPickerController
item, on iOS 7 , im using Xcode5
, what can i do?.
My code of the creation of MPMediaPickerController
is:
- (IBAction)addSongs:(id)sender {
MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];
picker.delegate = self;
picker.allowsPickingMultipleItems = YES;
}
I was trying with this but not works: https://gist.github.com/acidlemon/1955332
Examples:
Thanks in advance.
回答1:
Change your tab bar's tintColor
using the appearance proxy, e.g.:
[[UITabBar appearance] setTintColor:[UIColor yellowColor]];
To change the tintColor
of all views, including your label, you can do the following in your AppDelegate.m file:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UIView appearance] setTintColor:[UIColor yellowColor]];
return YES;
}
来源:https://stackoverflow.com/questions/22106313/mpmediapickercontroller-customize-the-colors-of-the-labels-and-icons