funct7/KRWalkThrough

Example is broken on iPhone X

Opened this issue · 0 comments

The problem is you setup all the tutorial frames in viewDidLoad: when the views' frames are still invalid.
And you should replace your hardcoded frames because iPhone X has different statusbar height+navigationbar height (sum) value with something like the following:
CGRect r = [self.navigationItem.rightBarButtonItem.customView convertRect:self.navigationItem.rightBarButtonItem.customView.frame toView:tView];
it works for custom bar button but shouldn't be called for example in viewDidAppear: