问题
I need change the gray color of the icons in MPMediaPickerController, when they are not selected, and the background is opaque, like faded, i need remove this too.
i'm using ios7.1 and the next code to show MPMediaPickerController element, on my viewController.
- (IBAction)addSongs:(id)sender {
MPMediaPickerController *picker = [[MPMediaPickerController alloc]
initWithMediaTypes:MPMediaTypeMusic];
picker.delegate = self;
picker.allowsPickingMultipleItems = YES;
[self presentViewController:picker animated:YES completion:nil];
}
And this code on AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIView appearance] setTintColor:[UIColor whiteColor]];
return YES;
}
example:
回答1:
This is the same as MPMediaPickerController customize the colors of the labels and icons
.... in the app delegate :
[[UIView appearance] setTintColor:[UIColor blueColor]];
the command sets the colour tone for tab bars, toolbars, etc everything with a sillohouette icon.... Your tab bar seems seems to be translucent over a dark window background .... I use mpmediapickercontroller too in my app and I get an all white background with the default setting since moving to IOS 7. I believe it is your windows.backgroundcolor mine is set to white.
来源:https://stackoverflow.com/questions/22134898/mpmediapickercontroller-background-colors-of-icons-when-aren%c2%b4t-selected