Handling In-Call Status Bar with Custom Modal Presentation

后端 未结 5 810
甜味超标
甜味超标 2021-01-30 13:25

The Problem

I\'ve noticed some strange behavior when presenting a UINavigationController (with a root view controller, already pushed, naturally) with

5条回答
  •  无人共我
    2021-01-30 14:04

    Just set the frame in layoutSubviews as it is called when the status bar height changes. In general as a rule of thumb, do all frame setting in layoutSubviews only.

提交回复
热议问题