UITextField输入文字下浮问题及更改模态视图导航条样式
2015-07-29 10:04
489 查看
1.解决UITextField输入文字下浮问题
self.navigationController.navigationBar.translucent=NO;原因可能是因为导航条高度为64 会造成干扰
[]http://stackoverflow.com/questions/31532212/text-in-uitextfield-shift-down-and-flash]
2.导航条样式
由于上述取消了导航条的透明效果后,视图的导航条样式明显不同于其他视图,而在appdelegate已经统一了样式,发现无论怎么修改[destinationNavController.navigationBar setBackgroundColor:[UIColor blackColor]];
[destinationNavController.navigationBar setTintColor:[UIColor blackColor]];
都无效,以为是appdelegate设置的问题。
后来发现设置导航条bar样式颜色的函数应该是:
[self.navigationController.navigationBar setBarTintColor:THEME_COLOR];
相关文章推荐
- UILabel高度自适应
- Seek the Value in Requested Capabilities
- IOS开发UI篇--动画(Core Animation)总结
- 源码推荐(7.29):iOS图片查看器(多图全屏查看可缩放),给UITextView 添加超链接
- Android项目生成build.xml
- iOS开发,UI学习之UILabel用法详解
- UITableViewCell的选中时的颜色设置
- poj-2524 Ubiquitous Religions
- vs2008 HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ ToolsVersions \ 14.0
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- ios开发之 用UILabel显示html
- Snail—UI学习之滑块UISlider
- UI-动画
- EF6 CodeFirst+Repository+Ninject+MVC4+EasyUI实践(六)
- HDU 4915 Parenthese sequence
- request对象的getParameterValues方法
- QT Creator 使用 design 修改 ui界面编译后界面未更新问题的解决 From EricQu
- android rawquery和query对照
- VS2015 卡在 LocalESPCui for zh-cn Dev12
- MyGUI 解析