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

Popular posts from this blog

python - Evaluating the next line in a For Loop while in the current iteration -

android - Hide fragments upon button click -

mongodb - How to keep track of users making Stripe Payments -