84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
想要实现的效果:1.用addChildViewController方法添加一个子控制器,并且add子控制器的view2.当横屏旋转时,仅让子控制器的view随方向改变3.横屏状态下,状态栏和系统音量调节也是横屏状态如图:竖屏状态下:
横屏状态下:
走同样的路,发现不同的人生
In override func viewWillLayoutSubviews() {} the layout will be fine
You can listen for screen rotation notifications and then transform childView
In override func viewWillLayoutSubviews() {} the layout will be fine
You can listen for screen rotation notifications and then transform childView