ios - Get info about current simulator device -
As I know I want to know what type of device is using (iPod, iPhone 4 , IPhone 5 etc.) I should
but this code works only with real devices and if the work simulator just says:
code> iPhone simulator < / Code> and never mind what kind of information I currently have about the simulator device. Can i
The simulator is running as Check Screen Size to determine what device is:
ScreenSize: CGRact = USScreenMinesScreen (). Width screenview = screen size. Width; ScreenHight = Screen Size. height;
If you want to get the version of OS etc You can use UIDevice.currentDevice () to access additional details:
Comments
Post a Comment