每日代码 2020-08-06
作者:
iOSWater | 来源:发表于
2020-08-06 14:34 被阅读0次 UIGraphicsBeginImageContextWithOptions(CGSize(width: screenWidth, height: 0.5), false, 0)
let path = UIBezierPath.init(rect: CGRect.init(x: 0, y: 0, width: screenWidth, height: 0.5))
UIColor.init(hexString: "0xDDDDDD")?.setFill()
path.fill()
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
tabBarViewController.tabBar.shadowImage = image
本文标题:每日代码 2020-08-06
本文链接:https://www.haomeiwen.com/subject/ubwzrktx.html
网友评论