IPAD - UISplitViewController 的 MainWindow NavigationBar 色调问题
问题:
每次我将 iPad 切换到纵向模式并显示弹出窗口时,主窗口导航栏的 TintColor 都会变回灰色。
详细信息:
- 我从 Xcode 3.2.5 创建应用程序并选择基于拆分视图的应用程序。
- 我使用界面生成器将 MainWindow.xib 的 navigationBar twinColor 更改为蓝色。
- 然后,我最初以横向模式运行该应用程序,tintColor 在模拟器上显示为蓝色。
- 当我将方向更改为纵向并单击按钮以显示 MainWindow 弹出窗口时,其导航栏与弹出窗口的边框混合,忽略蓝色。
- 但是当我将方向转回横向模式时,主窗口的tintColor 又恢复到其原始颜色,即灰色。即使代码写入 viewDidAppear 块,我也无法再编辑它的值。
这是一个错误吗?或者我需要配置更多设置才能使其正常工作?
提前致谢
——乔
Problem:
TintColor of the navigationBar of mainWindow gets back to grey color everytime I turn the iPad to portrait mode and show the popover.
Details:
- I created application from Xcode 3.2.5 and selected Split-View Based Application.
- I changed the navigationBar tintColor of the MainWindow.xib to blue using the Interface builder.
- Then, I run the app initially with landscape mode, and the tintColor showed with the value blue on the simulator.
- When, I changed the orientation to portrait and clicked the button to show the MainWindow popover, its navBar blends with the border of the popover, ignoring blue.
- But when I turned back the orientation to landscape mode, the tintColor of the MainWindow goes back to its original color which is Gray. And I can no longer edit its value even the code is written to viewDidAppear block.
Is this a bug? or are there more settings I need to configure for this to work?
Thanks in Advance
-- Jo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在 hoodah 的 devforums.apple.com 上找到了解决方法
使用 Interface Builder 将导航栏的类更改为该类
下面的代码:
希望有帮助..
I found workaround on devforums.apple.com from hoodah
to change the class of the navigationbar using the Interface Builder to the class
code below:
Hope it helps..
肯定是一个错误,我向苹果提交了开发人员支持请求,他们基本上说这是一个已知问题。
我已经发布了带有工作示例的源代码。
http://realprogrammersdontgarbagecollect.blogspot.com/2011/01/splitviewcontroller-with -navigationbar.html
Deffinately a bug, I submitted a developer support request to Apple and they basically said it was a known issue.
I have posted source code with a working example.
http://realprogrammersdontgarbagecollect.blogspot.com/2011/01/splitviewcontroller-with-navigationbar.html
我认为这是一个错误,我也遇到了这个问题。如果您有一个小测试用例,我建议您在 Apple 论坛上提出。
I think it's a bug and I've been having the problem also. If you have a small test case, I'd suggest raising it over on the Apple forums.