When I hide the status bar in one page from the uipageviewcontroller then move the whole content up.
override var prefersStatusBarHidden: Bool {
return true
}
how can I solve this problem?
Set the top constraint to Top Layout Guide
instead of View
in interface builder. Like so
Top Layout Guide
will be based on the status bar (or phone call, etc.) Where view will be a static value ignoring if the view has a status bar or not.