未选择图标的MPMediaPickerController背景颜色 [英] MPMediaPickerController background colors of icons, when aren´t selected

查看:155
本文介绍了未选择图标的MPMediaPickerController背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改MPMediaPickerController中图标的灰色,如果未选择它们,并且背景是不透明的(如褪色),我也需要删除它.

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.

我正在使用ios7.1和下一个代码在我的viewController上显示MPMediaPickerController元素.

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];

}

以及AppDelegate上的这段代码

And this code on AppDelegate

- (BOOL)application:(UIApplication *)application
      didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {



  [[UIView appearance] setTintColor:[UIColor whiteColor]];

  return YES;
}

示例:

推荐答案

这与.... 在应用程序委托中:

.... in the app delegate :

 [[UIView appearance] setTintColor:[UIColor blueColor]]; 

该命令使用sillohouette图标设置选项卡栏,工具栏等的色调....您的选项卡栏似乎在黑暗的窗口背景下是半透明的....我在应用程序中也使用了mpmediapickercontroller自从移至IOS 7以来,我的默认设置为全白色.我相信这是您的windows.backgroundcolor我的设置为白色.

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.

这篇关于未选择图标的MPMediaPickerController背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆