MPMediaPickerController background colors of icons, when aren´t selected

混江龙づ霸主 提交于 2019-12-11 08:15:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!