Created
July 8, 2019 21:00
-
-
Save exclusiveTanim/a0769db90e788f04314580ec887727d0 to your computer and use it in GitHub Desktop.
Open Settings iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Titanium.UI.createWindow({ | |
title : 'Pin Example', | |
backgroundColor : 'white' | |
}); | |
var button = Titanium.UI.createButton({ | |
title : 'Hello', | |
top : 10, | |
width : 100, | |
height : 50 | |
}); | |
button.addEventListener('click', function(e) { | |
Titanium.API.info("You clicked the button"); | |
var settingsURL = Ti.App.iOS.applicationOpenSettingsURL; | |
if (Ti.Platform.canOpenURL(settingsURL)) { | |
Ti.Platform.openURL(settingsURL); | |
} | |
}); | |
win.add(button); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment