idev-recipes icon indicating copy to clipboard operation
idev-recipes copied to clipboard

Start position of TabBarRow in CustomTabBar

Open NSElvis opened this issue 13 years ago • 1 comments

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.

NSElvis avatar Jul 05 '11 05:07 NSElvis

thanx!

mureev avatar Aug 19 '11 05:08 mureev