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
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
210
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
Technical Leadership for Architectural Decision Making
baasie
3
490
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
340
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Optimizing for Happiness
mojombo
378
71k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
460
WENDY [Excerpt]
tessaabrams
11
39k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
700
New Earth Scene 8
popppiees
3
2.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
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Ր༵