سؤال

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:enter image description here

enter image description here

Thanks in advance.

هل كانت مفيدة؟

المحلول

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;
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top