UIViewController In-Call Status Bar Issue

前端 未结 8 989
误落风尘
误落风尘 2020-12-01 12:24

Issue:

Modally presented view controller does not move back up after in-call status bar disappears, leaving 20px empty/transparent space at the top.<

8条回答
  •  清歌不尽
    2020-12-01 13:10

    Be sure to set the frame of the view controller's view you are presenting to the bounds of the container view, after it has been added to the container view. This solved the issue for me.

    containerView.addSubview(toViewController.view)
    toViewController.view.frame = containerView.bounds
    

提交回复
热议问题