carlos-sanchez
12/10/2013 - 4:39 PM

Detect iOS

Detect iOS

<script>
  var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false );

  if (iOS = true){
    //whatever
  }
</script>