NavigationBar设置背景色
self.navigationController?.navigationBar.barTintColor = UIColor(colorLiteralRed: 50/255, green: 127/255, blue: 205/255, alpha: 1)
SegmentalControl设置样式
self.SegmentalCtr.setTitleTextAttributes([NSForegroundColorAttributeName : UIColor.blackColor(),NSFontAttributeName : UIFont.systemFontOfSize(20)], forState: .Normal)
<attributes: [NSObject : AnyObject]?> 参数的填法:
[NSForegroundColorAttributeName : UIColor.blackColor(),NSFontAttributeName : UIFont.systemFontOfSize(20)]