Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Titanium もくもく会 #11
Search
Kosuke Isobe
September 10, 2013
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Titanium もくもく会 #11
Kosuke Isobe
September 10, 2013
More Decks by Kosuke Isobe
See All by Kosuke Isobe
React Native で LDR の クライアントを作ったというお話
k0sukey
0
110
Mocha testing in Titanium(en)
k0sukey
1
160
Mocha testing in Titanium(ja)
k0sukey
0
190
Titanium もくもく会 #10
k0sukey
0
2.3k
Titanium もくもく会 #5
k0sukey
0
1.9k
Featured
See All Featured
Building Adaptive Systems
keathley
44
3.1k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
200
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Facilitating Awesome Meetings
lara
57
7k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
390
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
580
Joys of Absence: A Defence of Solitary Play
codingconduct
1
390
The SEO Collaboration Effect
kristinabergwall1
1
490
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
440
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
Ϟδϡʔϧͷ͝հ 5JUBOJVN͘͘ձ 139݄10Ր༵
͍ͦ͜͏͚͢ @k0sukey ιέοτϕʔεΦʔϓϯεϚΠϧۈ 139݄10Ր༵
ઌʹݴ͓͖ͬͯ·͕͢ "OESPJEͷ Ϟδϡʔϧ͋Γ·ͤΜ 139݄10Ր༵
TiDKLiveBlur k0sukey/TiDKLiveBlur 139݄10Ր༵
5J6*5BCMF7JFX-JTU7JFXΛεΫϩʔϧͤ͞Δͱɺ J04෩ͷεϦΨϥεޮՌΛ࣮ݱͯ͘͠ΕΔϞδϡʔϧ UJBQQYNMͰಡΈ͜Ή͚ͩͰ0,Ͱ͢ɻSFRVJSFͷඞ ཁͳ͠ CBDLHSPVOE#MVS*NBHFHMBTT$PMPS͕͑ΔΑ͏ʹ ͳΓ·͢ %,-JWF#MVSͱ͍͏ϥΠϒϥϦΛ5JUBOJVNͰ͑Δ Α͏ʹ͠·ͨ͠ 139݄10Ր༵
tiapp.xml <modules> <module platform=”iphone”>be.k0suke.tidkliveblur</module> </modules> app.js var tableView = Ti.UI.createTableView({
backgroundBlurImage: ‘/images/backgroundɻpng’, glassColor: ‘#fff’ // optional }); 139݄10Ր༵
TiISRefreshControl k0sukey/TiISRefreshControl 139݄10Ր༵
5J6*5BCMF7JFX-JTU7JFXͰ 6*3FGSFTI$POUSPM͕͑ΔΑ͏ʹͳΔϞδϡʔϧ UJBQQYNMͰಡΈ͜Ή͚ͩͰ0,Ͱ͢ɻSFRVJSF ͷඞཁͳ͠ ͍͔ͭ͘ͷϓϩύςΟϝιου͕͑ΔΑ͏ʹ ͳΓ·͢ *43FGSFTI$POUSPMͱ͍͏ϥΠϒϥϦΛ5JUBOJVN Ͱ͑ΔΑ͏ʹ͠·ͨ͠ 139݄10Ր༵
KitchenSink pull to refresh example var tableView = Ti.UI.createTableView(), pulling
= false, reloading = false; tableView.addEventListener(‘scroll’, function(e){ var offset = e.contentOffset.y; if (offset <= 65 && !pulling && !reloadingoading) { // release to refresh proc } else if (pulling && (offset > -65 && offset < 0) && !reloading) { // pull down to refresh proc } }); tableView.addEventListener(‘dragend’, function(e){ if (pulling && !reloading) { reloading = true, pulling = false; // reloading proc } }); ... 139݄10Ր༵
tiapp.xml <modules> <module platform=”iphone”>be.k0suke.isrefreshcontrol</module> </modules> app.js var tableView = Ti.UI.createTableView({
refreshControlEnabled: true // default true }); tableView.addEventListener(‘refreshstart’, function(){ setTimeout(function(){ tableView.refreshFinish(); }, 5000); }); 139݄10Ր༵
΅͍ͬͯ͘·͢ "OESPJEͷਓ ͪ·͠ΐ͏ 139݄10Ր༵
ࢭ·Βͳ͍*TTVFT ୭͔ॿ͚ͯ 139݄10Ր༵
શʹଞਓͷ;ΜͲ͠Ͱ ૬Λͱͬͨ Ϟδϡʔϧͷ͝հͰͨ͠ 139݄10Ր༵
͓͠·͍ 139݄10Ր༵