idev-recipes
idev-recipes copied to clipboard
Start position of TabBarRow in CustomTabBar
Hello @boctor:
I've found that when you start the CustomTabBar example the TabBarRow is slightly moved to the right, and I've found a fix, maybe this can help you.
[Class] CustomTabBar [method] - (void) addTabBarArrowAtIndex:(NSUInteger)itemIndex
Change:
tabBarArrow.frame = CGRectMake([self horizontalLocationFor:itemIndex], verticalLocation, tabBarArrowImage.size.width, tabBarArrowImage.size.height);
To:
tabBarArrow.frame = CGRectMake([self horizontalLocationFor:itemIndex] - 5, verticalLocation, tabBarArrowImage.size.width, tabBarArrowImage.size.height);
That's all.
thanx!