1

我的导航栏标题有一个自定义视图,我的设置如下:

UIImageView *titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CustomTitleView.png"]];
self.navigationItem.titleView  = titleView;

这在模拟器上按预期工作,但在设备上测试时不显示。

非常感谢任何帮助!

4

1 回答 1

2

检查文件名的大小写?模拟器不区分大小写,设备对文件名区分大小写

于 2012-01-31T17:05:14.653 回答