Search code examples
iosxcodeuitabbaruitabbaritem

Selection Field Customisation in UITabBar


I need to customise the UITabBar as shown in this image, for my project. Is it possible to do so? And if so, how can it be done? the selection field should have this "orange" shadeTab Bar. Selected Field Must have Color


Solution

  • You can achieve this by doing :

    yourTabBar.selectionIndicatorImage = [UIImage imageNamed:@"yourImage.png"];
    

    Create the orange gradient as an image and use it in the code above.

    Hope this helps.