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
お手軽iPad対応
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ninjinkun
May 30, 2013
Technology
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
お手軽iPad対応
ninjinkun
May 30, 2013
More Decks by ninjinkun
See All by ninjinkun
買収から2ヶ月でシステム統合した話
ninjinkun
0
180
Designer's and Engineer's Thinking Styles
ninjinkun
0
310
Launchable Webinar テストを効率化して生産性を上げる方法
ninjinkun
2
610
ディープリンクの 設計と実装 - iOSDC2017
ninjinkun
18
11k
スマートフォンアプリ開発における共創的な開発チーム
ninjinkun
61
19k
ReSwiftでアプリの状態管理 / Reactive Swift Meetup
ninjinkun
9
17k
フリルのアプリ開発今昔物語
ninjinkun
3
2.3k
プロトタイピング合宿によるデザインリニューアル
ninjinkun
1
3.1k
デザイナーが仕事をしやすいアプリエンジニアを考える
ninjinkun
4
750
Other Decks in Technology
See All in Technology
検索技術知識0のエンジニアが広告検索システムを内製化して運用するまで
lycorptech_jp
PRO
0
170
信頼できるテスティングAIをどう育てるか?
odan611
0
170
CloudWatchから始めるAWS監視
butadora
0
300
Claude Code並行開発環境の ムダ‧ムラ‧ムリを見直した話
muranakaaa
0
340
データ活用研修 データマネジメント【MIXI 26新卒技術研修】
mixi_engineers
PRO
4
810
ウォーターフォール開発案件のPMとしてAI活用を模索している話
hatahata021
2
220
VPCセキュリティ対応の最新事情
nagisa53
2
350
データ組織の転換期 一足飛びしない段階的戦略
leveragestech
PRO
0
120
AI研修(Day2)【MIXI 26新卒技術研修】
mixi_engineers
PRO
2
1.5k
データ活用研修 問いの発見と仮説構築【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
690
実践が先生だった— 新卒サーバーエンジニア1年目のリアル
mixi_engineers
PRO
0
210
PLaMo 3.0 Primeの構造化出力サポート
pfn
PRO
0
130
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
340
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
190
Done Done
chrislema
186
16k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
330
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
280
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
A designer walks into a library…
pauljervisheath
211
24k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
470
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
͓खܰiPadରԠ id:ninjinkun / @ninjinkun http://ninjinkun.hatenablog.com Thursday, May 30, 13
͓खܰiPadରԠ • ͓खܰʹ͢ΔͨΊͷલఏ • iOS͕༻ҙ͍ͯ͠ΔػೳΛ׆༻͢Δ • UIΈࠐΈΫϥεΛத৺ͱͯ͠࡞Δ Thursday, May 30,
13
ΞδΣϯμ • ΈࠐΈUIΫϥε • UIViewAutoresizing • UIView • Ϟʔμϧ •
ϦιʔεϑΝΠϧ • ϨΠΞτΫϥεͷ • ճసରԠ Thursday, May 30, 13
ΈࠐΈUIΫϥε • ࣗಈతʹ৳ॖ͞ΕΔ • UINavigationController • UITabBarController • ViewͷதखಈͰ৳ॖ Thursday,
May 30, 13
UIViewAutoresizing • Ϗϡʔʹର͢Δ্Լࠨӈἧ͑ɺॎԣ֦େΛఆٛ • ը໘͕͕ͬͯݩͷϨΠΞτΛҡ࣋͢ΔΑ͏ʹ • Autolayout͍͍͚ͨͲ… • iOS 6͔ΒͷΈରԠ
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; Thursday, May 30, 13
UIView • drawRect:ͰҰؾʹॻ͔ͳ͍ • ϏϡʔΛׂ͢Δ • UIImageView, UILabelʹཔΔ • UIViewࢠΫϥεͳΒ
layoutSubviewsͰαΠζΛઃ ఆͯ͠Δ Thursday, May 30, 13
Ϟʔμϧ • ModalΛશը໘Ͱग़͔͢αϒΟϯυͱͯ͠ग़͔͢ • ߘUIΈ͍ͨͳͷαϒΟϯυͰ viewController.modalPresentationStyle = UIModalPresentationFormSheet; Thursday, May
30, 13
ϦιʔεϑΝΠϧ • .nib, .storyboard, .png • ~ipadΛ͚ͭͯذ • ࣗಈతʹ~ipad͕ϩʔυ͞ΕΔ Thursday,
May 30, 13
ϨΠΞτΫϥεͷ • ෳࡶͳϨΠΞτʹPositionΫϥεΛఆٛ • ViewͷϨΠΞτใΛͨ͠Ϋϥε • CGRectΛͨ͘͞Μ࣋ͬͯΔ • ͜ͷΫϥεΛ෯Մมʹ͢ΕରԠྃ @interface
BookmarkEntryPosition : NSObject @property (nonatomic, assign) CGFloat cellHeight; @property (nonatomic, assign) CGRect titleRect; @property (nonatomic, readonly, assign) CGRect faviconRect; @property (nonatomic, assign) CGRect countRect; @property (nonatomic, assign) CGRect contentRect; @property (nonatomic, assign) CGRect imageRect; @property (nonatomic, assign) CGRect countLineRect; @property (nonatomic, strong) NSArray *favoriteRects; Thursday, May 30, 13
ճసରԠ • iPadΞϓϦճస͠ͳ͍ͱϦδΣΫτ • UIViewAutoresizingͳͲͪΌΜͱͬͯΕ͘͠ͳ͍ • ճస࣌ʹlayoutSubviews͕ݺΕΔ • iOS 5ͱ6ͷࠩʹҙ
• iOS 5ͳΒҎԼͰOK • ৄ͘͠ʮiOS 6 ͷAuto RotationʯΛࢀর -(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation { return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad; } Thursday, May 30, 13
·ͱΊ • iOSͷػೳʹཔΔ͜ͱͰίετʹiPadରԠͰ͖·͢ • ࠷ॳ͔ΒUIViewAutoresizing༻ͷίʔυʹ͓ͯ͘͠ ͱྑ͍ • ϕετͰͳ͍͚ͲΒͳ͍ΑΓ·͠ Thursday, May
30, 13