Skip to content

Instantly share code, notes, and snippets.

@iskugor
Created November 14, 2013 11:30
Show Gist options
  • Select an option

  • Save iskugor/7465306 to your computer and use it in GitHub Desktop.

Select an option

Save iskugor/7465306 to your computer and use it in GitHub Desktop.
Alloy "isTablet" that detects iPad mini
Alloy.isTablet = Alloy.isTablet || (Ti.Platform.model.search(/ipad/i) > -1);
@iskugor

iskugor commented Nov 14, 2013

Copy link
Copy Markdown
Author

"Ti.Platform.osname" returns "iphone" for iPad mini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment