ealeksandrov / EAIntroView

Highly customizable drop-in solution for introduction views.
MIT License
3.76k stars 501 forks source link

Auto layouts for the iPad pro are working inappropriate . #181

Closed surendraraju closed 8 years ago

surendraraju commented 8 years ago

For those who want the fix , please let me know. I fixed it myself for my use.

Svantulden commented 8 years ago

Yeah please share!

surendraraju commented 8 years ago

EAIntroView.m , go to method -(void)willMoveToSuperview:(UIView *)newSuperview and replace the line

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];

with

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];