Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

IsIOSDevice

Queries whether run on iOS device.

Component Version macOS Windows Linux Server iOS SDK
Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "IsIOSDevice" )

Parameters

none

Result

Returns 1 or 0.

Description

Queries whether run on iOS device.
Returns 0 in simulator or on macOS, Windows and Linux.

Examples

Distinguish between device and simulator:

If [ MBS( "IsIOSDevice" ) = 1 ]
    # iOS specific things for device
Else If [ MBS("IsiOSSimulator") = 1 ]
    # iOS specific things for simulator
Else
    # other cases
End If

See also

Blog Entries

This function is free to use.

Created 9th December 2017, last changed 11st December 2017


IsIOS - IsIOSSimulator

💬 Ask a question or report a problem