ios - UIScreen class is gone in ios10 simulator sdk -
i used
[[uiscreen mainscreen] bounds].size.width
code before ios10. when build code using ios10 simulator sdk, occurs error
"receiver 'uiscreen' class message forward declaration no known class method selector 'mainscreen'".
and know uiscreen class not existed in ios10 simulator sdk not ios10 sdk.
first, different built in ios10 sdk ios10 simulator?? , second, how can handle compile error.
Comments
Post a Comment