去除系统tabBar上面的线
第一种
let rect =CGRectMake(0,0,self.view.frame.width,self.view.frame.height)
UIGraphicsBeginImageContext(rect.size)
let context =UIGraphicsGetCurrentContext()
CGContextSetFillColorWithColor(context,UIColor.clearColor().CGColor)
CGContextFillRect(context, rect)
let image =UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.tabBar.backgroundImage = image
self.tabBar.shadowImage = image
第二种
self.tabBar.clipsToBounds =true
多余49部分剪切掉第三种
self.tabBar.shadowImage =UIImage()