简体   繁体   中英

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 ?

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM