Nitesh Nitesh - 4 months ago 11
iOS Question

UITabBarController Change Color of "More" Tab

I'm having UITabBarController's with more than 5 tabs. Now i'm confused how to change the title color of "More" which is black as default to white. Also how to hide the tableview lines of the cells. Like in tableview we add UIView into tableview's footer. How to do it in this scenario ?

enter image description here


To hide the lines select the table and set the Separator to none in IBInspector.

To change the title color use following code in appdelegate:

UINavigationBar.appearance().titleTextAttributes = [
    NSForegroundColorAttributeName: UIColor.whiteColor(),
    NSFontAttributeName: UIFont(name: "Helvetica", size: 18)!

To remove the extra lines/separator, just drag and drop an UIView below the Prototype cell, it will act as a Table footer, set its height to 1.