Custom tab bar icon colors

后端 未结 7 1182
傲寒
傲寒 2020-12-08 12:39

Im currently using Xcode 5 to develop a list oriented app. I have a custom tint for the tab bar, custom images for the tab icons, custom tint for the tab bar\'s icon images

7条回答
  •  误落风尘
    2020-12-08 12:50

    You can do this purely from the storyboard without writing any code by adding a "User Defined Runtime Attribute":

    1. Select your UITabViewController in the storyboard
    2. Open the "Document Outline" and make sure that you select the "Tab Bar" view in the scene.
    3. Show the "Identity Inspector". You should see a section for "User Defined Runtime Attributes"
    4. Add the following:
      • Key Path: tintColor
      • Type: Color
      • Value: Select the color you want.

提交回复
热议问题