Skip to content

Example is broken on iPhone X #3

@gerchicov-bp

Description

@gerchicov-bp

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions