Skip to content

After dismissing the view overlaps with status bar. #94

Closed
@JARMourato

Description

@JARMourato

After reading all the issues I concluded that my issue is related to the issues #71 #77 #78 . I'm using autolayout so it might be connected to that. I've found a solution, which is to move the line that fixes the status bar from the viewDidDisappear to the viewWillDisappear. Also, I think a better way is to add an animation so that it all goes smoothly. Code below:

public override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)

statusBarHidden = UIApplication.sharedApplication().statusBarHidden
UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: .Fade)

}

public override func viewWillDisappear(animated: Bool) {

    super.viewWillDisappear(animated)
    UIApplication.sharedApplication().setStatusBarHidden(statusBarHidden, withAnimation: .Fade)

}

Just a suggestion.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions