如何在iOS中获得屏幕的尺寸?
目前,我使用:
lCurrentWidth = self.view.frame.size.width;
lCurrentHeight = self.view.frame.size.height;在viewWillAppear:和willAnimateRotationToInterfaceOrientation:duration:中
第一次我得到了整个屏幕的尺寸。第二次我看到没有导航栏的屏幕。
发布于 2016-04-04 13:17:16
CGFloat width = [[UIScreen mainScreen] bounds].size.width; CGFloat height = [[UIScreen mainScreen]bounds ].size.height;
https://stackoverflow.com/questions/5677716
复制相似问题