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
200
Titanium もくもく会 #10
k0sukey
0
2.3k
Titanium もくもく会 #5
k0sukey
0
2k
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Agile that works and the tools we love
rasmusluckow
331
22k
It's Worth the Effort
3n
188
29k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
220
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
480
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Designing Experiences People Love
moore
143
24k
Documentation Writing (for coders)
carmenintech
77
5.5k
Done Done
chrislema
186
16k
A Modern Web Designer's Workflow
chriscoyier
698
190k
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Ր༵