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
First step of 3D touch
Search
sonson
November 08, 2016
Programming
0
590
First step of 3D touch
sonson
November 08, 2016
Tweet
Share
More Decks by sonson
See All by sonson
計算グラフのJITコンパイラをLLVM on C++で作ろう
sonsongithub
2
550
LLVMでHalideみたいな計算グラフ+JITを作りたい
sonsongithub
0
1.3k
LLVM Tutorial 02 - わいわいswiftc
sonsongithub
1
370
LLVM Tutorial - わいわいswiftc
sonsongithub
0
290
How to make and publish a Swift playground book for iPad
sonsongithub
5
19k
Swiftで実装するHTML特殊文字の高速処理
sonsongithub
3
7.6k
Getting started with 3D Touch
sonsongithub
0
680
SSLって必要ですか〜Let's Encryptを試してみよう
sonsongithub
3
520
Other Decks in Programming
See All in Programming
Zoneless Testing
rainerhahnekamp
0
120
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
690
事業成長を爆速で進めてきたプロダクトエンジニアたちの成功談・失敗談
nealle
3
1.4k
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
nekko cloudにおけるProxmox VE利用事例
irumaru
3
420
MCP with Cloudflare Workers
yusukebe
2
220
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
Go の GC の不得意な部分を克服したい
taiyow
2
770
今からはじめるAndroidアプリ開発 2024 / DevFest 2024
star_zero
0
1k
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
110
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Italy
prof18
0
150
良いユニットテストを書こう
mototakatsu
5
1.9k
Featured
See All Featured
Visualization
eitanlees
146
15k
A better future with KSS
kneath
238
17k
RailsConf 2023
tenderlove
29
940
Adopting Sorbet at Scale
ufuk
73
9.1k
Building Applications with DynamoDB
mza
91
6.1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Code Reviewing Like a Champion
maltzj
520
39k
Embracing the Ebb and Flow
colly
84
4.5k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Transcript
How to show it. Tech. Yuichi Yoshida Researcher, DENSO IT
Laboratory, Inc. #???? @sonson_twit © 2014 DENSO IT Laboratory, Inc., All rights reserved. Redistribution or public display not permitted without written permission from DENSO IT Laboratory, Inc. First step of 3D touch
ࣗݾհ • sonson • twitter: sonson_twit • github: sonsongithub •
portfolio • reddift(SwiftͰॻ͍ͨreddit.comͷAPIϥούʔ) • ࣄ • ը૾ೝࣝ/ݕࡧ/ͦΕΛͬͨΞϓϦ • ػցֶशͷ͓ษڧͱ͔ॾʑͱ͔
͜ͷϘέͳ͍ྖҬͷઃఆʙμϝͳྫ
͜ͷϘέͳ͍ྖҬͷઃఆʙOK
͜ͷϘέͳ͍ྖҬͷઃఆʙҰ൪͍͍
දࣔͷྲྀΕ • registerForPreviewingͰ४උ͢Δ • ͜͜Ͱ3D touchʹԠ͢ΔviewΛઃఆ͢Δ • previewingContext(_:viewControllerForLocation:) • sourceRectΛઃఆ͢Δ
• ্Ͱઃఆͨ͠viewͷ࠲ඪܥͰsourceRectΛηοτ
registerForPreviewing
previewingContext(_:viewControllerForLocation:) • Body
previewingContext(_:viewControllerForLocation:) 6*7JFX$POUSPMMFS1SFWJFXJOH%FMFHBUF 6*7JFX$POUSPMMFS 7JFX
previewingContext(_:viewControllerForLocation:) 6*7JFX$POUSPMMFS1SFWJFXJOH%FMFHBUF 6*7JFX$POUSPMMFS 7JFX %UPVDIൃੜ
previewingContext(_:viewControllerForLocation:) 6*7JFX$POUSPMMFS1SFWJFXJOH%FMFHBUF 6*7JFX$POUSPMMFS 7JFX ͳΜ͔ίϯςϯπ͋Δʁ ίϯςϯπ
previewingContext(_:viewControllerForLocation:) 6*7JFX$POUSPMMFS1SFWJFXJOH%FMFHBUF 6*7JFX$POUSPMMFS 7JFX 6*7JFX$POUSPMMFS ͜ͷྖҬ͔Β ͜ͷ7JFX$POUSPMMFSΛදࣔͯ͠ ίϯςϯπ
previewingContext(_:viewControllerForLocation:) • Body
previewingContext(_:viewControllerForLocation:) • Body
previewingContext(_:viewControllerForLocation:)
UIView.convert • ͋Δview͔Βݟͨɼ͋ΔviewͷrectΛܭࢉͯ͘͠ΕΔ • a.convert(rect:, to:b) • view aͷrectΛview b͔Βݟͨrectʹม
• a.convert(rect:, from:b) • view bͷrectΛview a͔Βݟͨrectʹม • ͋Γ·͢ • a.convert(point: to:b) • a.convert(point: from:b)
UIView.convert f=(200,50,50,60) b a c
UIView.convert f=(200,50,50,60) b a a.convert(f, from:c) => (800,80,50,60) c
UIView.convert f=(200,50,50,60) b a c.convert(f, to:a) => (800,80,50,60) c
Ԡ༻͢Δͱ
previewingContext(_:viewControllerForLocation:) • Body
αϯϓϧ • UZTextView • https://github.com/sonsongithub/UZTextView • developϒϥϯν
3D Touchͷςετ • ࣮ػ • Simulator
·ͱΊ • registerForPreviewingͰ४උ • viewΛొ • previewingContext(_:viewControllerForLocation:) • view controllerΛ࡞
• Ξχϝʔγϣϯ͍ͤͨ͞ྖҬΛܭࢉ • ฦ͢
None