[英]iOS Scale UIWindow ,but the statusBar can not scale?
In iOS, UIStatusBar
is not a part of any UIWindow
, so you scale an UIWindow
take no effect on UIStatusBar
. 在iOS中,
UIStatusBar
不属于任何UIWindow
,因此缩放UIWindow
不会对UIStatusBar
产生影响。
You can use snapshotViewAfterScreenUpdates:
API to take a screenshot image, and show the image in UIImageView
, than you can scale the UIImageView
rather than the UIWindow
. 您可以使用
snapshotViewAfterScreenUpdates:
API截取屏幕快照图像,并在UIImageView
显示该图像,而不是可以缩放UIImageView
而不是UIWindow
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.