THTinderNavigationController icon indicating copy to clipboard operation
THTinderNavigationController copied to clipboard

NavigationBarItems are misaligned bigger screens

Open rahuljiresal opened this issue 10 years ago • 4 comments

The NavigationBarItems are misaligned on iPhone 6 and iPhone 6 Plus.

rahuljiresal avatar Oct 23 '14 18:10 rahuljiresal

True, I have to work on this.

Thank you

tgyhlsb avatar Oct 24 '14 14:10 tgyhlsb

@rahuljiresal if you get a chance take a look at my pull request #3

camanjj avatar Oct 28 '14 02:10 camanjj

Any update on these positions?

nikola-markovic avatar Dec 30 '15 12:12 nikola-markovic

try this in your NavBarItem.m:

  • (void)updateViewWithRatio:(CGFloat)ratio { //... CGFloat screenMiddle = self.superview.frame.size.width / 2; CGFloat difference = self.center.x - screenMiddle; CGPoint moveView = self.center;

    moveView.x -= ratio * difference;

    self.center = moveView; //... }

nikola-markovic avatar Jan 12 '16 21:01 nikola-markovic