UITabBarItem setTitlePositionAdjustment
- (void)setTitlePositionAdjustment:(UIOffset)adjustment
Parameters of [UITabBarItem setTitlePositionAdjustment]
adjustment
The offset to use to adjust the title position.
UITabBarItem setTitlePositionAdjustment example.
verticalOffset = UIOffset.new(0, -4)
self.tabBarItem = UITabBarItem.alloc.initWithTitle('First', image: nil, tag: 0)
self.tabBarItem.setFinishedSelectedImage(tabSelected, withFinishedUnselectedImage: tabNormal)
self.tabBarItem.setTitlePositionAdjustment(verticalOffset)
self.tabBarItem = UITabBarItem.alloc.initWithTitle('First', image: nil, tag: 0)
self.tabBarItem.setFinishedSelectedImage(tabSelected, withFinishedUnselectedImage: tabNormal)
self.tabBarItem.setTitlePositionAdjustment(verticalOffset)
Example of [UITabBarItem setTitlePositionAdjustment].
[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0, -10)]
UITabBarItem setTitlePositionAdjustment example.
Got it!
[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0, -10)]
[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0, -10)]