THTinderNavigationController
THTinderNavigationController copied to clipboard
iPad icons shift
Hi, on my iPad Air I noticed that the icons in the nav bar are not spaced like they should be. When swiping from a page to an other, they move a little less than they should, which increase their misposition while you go to further pages.
The problem is the SPEED constant, 2.45 works perfectly on my iPhone 5 but create the shift on my iPad. To have a perfect nav bar icons position on iPad (768x1024), I have to set SPEED to 2.18.
I tested the value on iPad Pro Simulator (the biggest screen size), and I work perfectly as well. I didn't test it on every screen size so I won't create a pull request, but I think that 2.18 is the value you want to set to your SPEED constant on iPad.
Here is my change :
define IS_IPAD() ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
define SPEED (IS_IPAD() ? 2.18 : 2.45)
Cheers, Cyril