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
1時間で作るSwiftアプリ / Swift Application in an hour
Search
horimislime
October 14, 2014
Technology
160
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
1時間で作るSwiftアプリ / Swift Application in an hour
horimislime
October 14, 2014
More Decks by horimislime
See All by horimislime
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
410
スタートアップの急成長に寄り添うOn-Call体制構築とその変遷
horimislime
3
2.2k
How we build our app with minimum 3rd party dependencies
horimislime
0
120
サポート効率を上げるためのロギング環境構築
horimislime
7
4k
migrating-from-promise-to-reactive
horimislime
0
430
社内Swiftもくもく会成果発表
horimislime
0
170
Swift Optional Extension Tips
horimislime
1
1.8k
ios-internationalization
horimislime
2
9.1k
UI testing in XCode7
horimislime
3
870
Other Decks in Technology
See All in Technology
Service Connect 上のサービスに ECS Service の外側から到達できなかった話
ota1022
1
150
ラジオの科学
frievea
0
280
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
170
Webアクセシビリティ入門 2026
recruitengineers
PRO
2
460
モバイルアプリ開発概論2026
recruitengineers
PRO
3
500
바이브풀 라이프
arawn
0
100
取引先から届く 「セキュリティチェックシート」の読み解き方
kamadamakoto
0
140
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
2
640
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
200
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
660
変化の早いClaude Codeを 書籍に落とし込む
oikon48
7
1.3k
Goでデータパイプラインを作ろう
sansantech
PRO
0
360
Featured
See All Featured
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Paper Plane (Part 1)
katiecoart
PRO
1
10k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
200
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
410
Measuring & Analyzing Core Web Vitals
bluesmoon
9
950
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Test your architecture with Archunit
thirion
1
2.3k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
200
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
480
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
420
Technical Leadership for Architectural Decision Making
baasie
3
470
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
330
Transcript
1࣌ؒͰ࡞ΔSwiftΞϓϦ Swift Study ୈࡾճ
✓ CocoaPods → gem install cocoapods ✓ ͻͳܗίʔυ → https://github.com/horimislime/SwiftNewsReaderSample
✓ directory rootͰ pod install Լ४උ
ຊͷ༰ SwiftΛͬͨ؆୯ͳΞϓϦ࡞ ίʔυΛॻ͖ͳ͕Βߏจͷ͓͞Β͍ iOS։ൃະܦݧͳਓΛఆ͍ͯ͠·͢
࡞Δͷ RSSϦʔμʔ γϯϓϧʹTableViewͰهࣄΛ දࣔ͢Δ
खॱ1 ςʔϒϧϏϡʔΛ༻ҙ͢Δ ViewController.swift Λվ͢Δ UITableViewControllerͷܧঝΫϥεʹมߋ͢Δ ࠷ݶඞཁͳϝιουΛOverride͢Δ
खॱ2 χϡʔεهࣄͷσʔλΛಡΈࠐΉ HTTP௨৴ͰJSONσʔλΛऔಘ͢Δ → URL https://api.myjson.com/bins/4dx6g parseͯ͠NSDictionaryͷྻʹಡΈࠐΉ ಡΈࠐΜͩهࣄΛςʔϒϧʹදࣔ͢Δ
खॱ3 ը૾ΛඇಉظͰಡΈࠐΉ parseͨ͠JSONͷը૾URLΛಡΈࠐΉ ௨৴ඇಉظͰߦ͍ɺUIImageͰදࣔ͢Δ Ұ୴libraryΘͣɺGCDͰͬͯΈΔ
खॱ4 ηϧΛλοϓͯ͠هࣄΛදࣔ͢Δ ηϧΛλοϓͨ͠ࡍͷΠϕϯτΛhandle͢Δ tableͷԿ൪ͷηϧ͕બ͞Ε͔ͨఆ͢Δ →͜ΕΛݩʹهࣄྻ͔ΒσʔλΛऔΓग़͢ ֘ͷهࣄΛදࣔ͢ΔUIWebViewભҠ͢Δ
͓·͚1 3rd-partyϥΠϒϥϦΛͬͯΈΔ ը૾ಡΈࠐΈʹSDWebImageΛͬͯΈΔ ಡΈࠐΈதSVProgressHUDͰϩʔυը໘Λग़͢ ༧Ίpod install͓͍͍ͯͯͩ͘͠͞
͓·͚2 ςετΛॻ͍ͯΈΔ SwiftͰBDDͳςετΛॻ͍ͯΈΔ SwiftςετϥΠϒϥϦQuickΛclone͢Δ CocoaPods·ͩSwift libraryະରԠͱͷࣄ
SwiftΛ৮ͬͯΈͯ Obj-CΑΓΔ͔ʹײత & ॻ͘ྔݮΔ ͪΌΜͱݴޠֶ༷ͳ͍ͱྑ͕͞ग़ͤͳͦ͏ → Scala͍͜ͳͤͯͳ͍JavaΤϯδχΞతͳ… ୯ମςετ͚ͩͰSwiftԽ͢Δͷྑͦ͞͏ ˠӡ༻ϓϩδΣΫτͰಋೖ͕༰қ
None