繁体   English   中英

NILauncherView背景色

[英]NILauncherView Background Colour

我正在尝试设置iOS NimbubKit附带的NILauncherViewController的背景图像(Three20套件的更新)。

我试过了
self.launcherView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@“ Background.png”]];

并且self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@“ Background.png”]]; self.launcherView.backgroundColor = [UIColor clearColor];

但是都没有用。

也没有将UIImageView作为子视图添加到viewController并使启动器视图清晰可见。

是的,图像名称正确。

编辑

如果有人需要解决该问题,我只需制作一个UIViewController并添加NILauncherView作为子视图,然后从NILauncerViewController复制委托/数据源方法

看起来NILauncherViewController的view属性不是NILauncherView。 要访问NILauncherView实例,只需执行以下操作:

NILauncherView *view = [controller.view.subviews objectAtIndex:0];

然后,您可以使用以下方法设置背景色:

view.backgroundColor = ...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM