erknrio of Programming Guanches
3/16/2016 - 1:38 PM

Comprueba la versión de iOS que se está ejecutando. FROM: https://gist.github.com/rafaelrinaldi/5873671

Comprueba la versión de iOS que se está ejecutando. FROM: https://gist.github.com/rafaelrinaldi/5873671

function checkIOSVersion() {
    var match = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/),
        version;

    if (match !== undefined && match !== null) {
        version = [
            parseInt(match[1], 10),
            parseInt(match[2], 10),
            parseInt(match[3] || 0, 10)
        ];
        return version.join('.');
    }
    return false;
}