Frage

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:

enter image description here

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top