Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Detecting iPad with C#

$
0
0
Hello, I have a mobile game with a GUI HUD. I use some calculations using screen.width and screen.height. This works fine on Android, but because iOS devices set the screen.height differently my HUD is all messed up. I want to fix this using a simple if statement: if (Application.platform == RuntimePlatform.Android) and if (Application.platform == RuntimePlatform.IPhonePlayer) But RuntimePlatform only has a iPhonePlayer. Because I am working with an iPad this doesn't seem to work. Do any of you guys (and girls) know how I can detect iOS of all kinds? Thanks, Nils

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>