MPMediaPickerController customize the colors of the labels and icons

筅森魡賤 提交于 2020-01-16 01:05:12

问题


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

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