美文网首页
ios开发问题总汇

ios开发问题总汇

作者: 贪吃鱼 | 来源:发表于2015-10-22 17:24 被阅读77次

    语言 swift2.0

    tabbarImage 选中后的图片
    
    
     let tabitem:[UITabBarItem] = self.tabBar.items!
     tabitem[0].title = "标题"
     tabitem[0].image = UIImage(named: "图片")?.imageWithRenderingMode( UIImageRenderingMode.AlwaysOriginal)
     tabitem[0].selectedImage = UIImage(named: "选中的图片")?.imageWithRenderingMode( UIImageRenderingMode.AlwaysOriginal)
    
    
    navigationBar的背景颜色和title的字体颜色
    
    
     //设置字体颜色
     self.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.whiteColor()]
     //设置背景颜色
     self.navigationBar.barTintColor = UIColor(red:233.0/255.0,green:106.0/255.0,blue:52.0/255.0,alpha:1)
    

    相关文章

      网友评论

          本文标题:ios开发问题总汇

          本文链接:https://www.haomeiwen.com/subject/ccethttx.html