-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathios.xml
More file actions
57 lines (38 loc) · 2.14 KB
/
ios.xml
File metadata and controls
57 lines (38 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Alloy>
<Tab title="iOS">
<Window title="iOS APIs">
<ScrollView>
<View class="vbox">
<Label class="help">Compare opening an URL in Safari and the new Safari Dialog:</Label>
<Button class="tpad" onClick="openSafari">Ti.Platform.openURL()</Button>
<Button class="tpad" onClick="openSafariDialog">ti.safaridialog.open()</Button>
<Label class="help tpad2">Change the height of a picker:</Label>
<!--
You can now set the picker height, but only at creation
Set via global in alloy.js for workaround
FIXME: https://jira.appcelerator.org/browse/TIMOB-20028
-->
<Picker class="tpad" type="Ti.UI.PICKER_TYPE_DATE" height="50" />
<Label class="help tpad2">See how we use the new placeholder, keyboardType and returnKeyType properties in the controller:</Label>
<Button class="tpad" onClick="alertDialog">PLAIN_TEXT_INPUT</Button>
<Button class="tpad" onClick="alertDialog">SECURE_TEXT_INPUT</Button>
<Button class="tpad" onClick="alertDialog">LOGIN_AND_PASSWORD_INPUT</Button>
<Label class="tpad2 help">Tap and quickly lock your phone (⌘L in Simulator) or press the home button (⇧⌘H) to see the new text input option for interaction notification actions on iOS 9 and later.</Label>
<Button class="tpad" onClick="notification">TEXTINPUT</Button>
<Label id="thinningHelp" class="tpad2 help" />
<ImageView class="tpad" image="/images/tabIcon.png" />
<Label id="file" />
<Label class="tpad2 help">Test with and without main thread enabled in tiapp.xml to see how with unoptimized code the progress bar won't update until all operations are finished if main thread is enabled. Also note that async's eachSeries() utility is faster (and also cleaner in code) then Underscore's defer().</Label>
<ButtonBar class="tpad" onClick="testThread">
<Labels>
<Label>Unoptimized</Label>
<Label>_.defer()</Label>
<Label>async.eachSeries()</Label>
</Labels>
</ButtonBar>
<ProgressBar id="progressBar" class="tpad" min="0" max="Alloy.CFG.threadOperations" value="0" width="300" />
</View>
</ScrollView>
</Window>
</Tab>
</Alloy>