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

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

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