how to remove 1px line at UINavigationBar
来源:互联网 发布:js 中文编码 编辑:程序博客网 时间:2024/04/28 17:40
let navBar:UINavigationBar=UINavigationBar()navBar.frame=CGRectMake(0, 0, view.frame.width, 80)navBar.shadowImage = UIColor.whiteColor().as1ptImage()navBar.setBackgroundImage(UIColor.whiteColor().as1ptImage(), forBarMetrics: UIBarMetrics.Default)extension UIColor { func as1ptImage() -> UIImage { UIGraphicsBeginImageContext(CGSizeMake(1, 1)) let ctx = UIGraphicsGetCurrentContext() self.setFill() CGContextFillRect(ctx!, CGRect(x: 0, y: 0, width: 1, height: 1)) let image = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() return image! }}
0 0
- how to remove 1px line at UINavigationBar
- Linux - How to remove the new line at the end of file when using vim
- How to remove a line from a file in java?
- how to make 1px border
- How to customize back button on UINavigationBar
- How to Cheat at Windows System Administration Using Command Line Scripts
- Customize UINavigationBar and remove drop shadow at the bottom of UINavigationBar
- How to read file line by line?
- How to remove a replica.
- How to remove ActiveX Controller
- How to remove OLAP组件?
- How to remove GlusterFS Volumes
- How to change the text color on UINavigationBar button items
- How can you decide to use UINavigationBar, UIToolbar and UITabbar
- How to customize xtragrid column line
- How to show line number in eclipse
- Know How to Use Command-line Tools
- Know How to Use Command-Line Tools
- 龟兔赛跑
- Windows内核中的读写锁
- matlab时间加5分钟
- HT349IntersectionOfTwoArray
- 无底色 无背景 logo 图标
- how to remove 1px line at UINavigationBar
- STM32用SysTick来做定时器
- BinarySearch小总结
- openjudge 水题 方块转换
- openjudge水题 翻转诗句
- Task Scheduler I & II
- mybatis-XMLMapperEntityResolver 找对应的dtd文件
- 莫等闲,白了少年头,空悲切
- 【非常高%】【codeforces 733B】Parade