Configuring a custom separator image in a UITabBar using setDividerImage: forLeftState: rightState:

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/UIKitUICatalog/UITabBar.html

In the Image Section link above, by default there is no separator image between tabs on the tab bar. You can set custom separator images for each combination of left and right tab control states using the setDividerImage: forLeftState: rightState: method method If you use custom separators, be sure to set separation images for all combinations of tab states: selected on the left, selected on the right, or both not selected. "

How can I use setDividerImage: forLeftState: rightState: custom separator setting method in UITabBar?

I tried many options [Appearance of UITabBar], [Appearance of UITabBarItem], [Appearance of UITabBarController], self.tabBarController.tabBar and self.tabBarController.tabBarItem, but the completion of the xcode code did not show me the above method.

I am using Xcode 5.1.1 with iOS sdk 7.1.

Waiting for you from you guys!

Thanks and respect,

Mihir

+4
source share

Source: https://habr.com/ru/post/1546126/


All Articles