Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
チュートリアルから一歩前進する為のAutoLayout Tips
Search
Yutaka Shimada
January 26, 2019
Programming
95
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
チュートリアルから一歩前進する為のAutoLayout Tips
2019/01/26に行われたiPhone Dev Sapporoで発表した時の資料です。
Yutaka Shimada
January 26, 2019
Transcript
27 slides
νϡʔτϦΞϧ͔Β Ұาલਐ͢Δҝͷ AutoLayout Tips iPhone Dev Sapporo 2019/01/26 ͠·ͩΏ͔ͨˏShimayuSti
iPhoneΞϓϦΛॳϦϦʔεͨ͠
ൃදऀˏ͠·ͩΏ͔ͨ @ShimayuSti shimayu22 @shimayu_sti ೣࣂ͍࠺ࢠ࣋ͪඇΤϯδχΞ ΞϓϦ࡞Γ͓͡͞Μɻ ৄ্͘͠هΞΧϯτ͔Β
ϋϜԠԉՎ҉هΞϓϦʢඇެࣜʣ
͓ɺΞϓϦͷ༷ࢠ͕ɾɾɾ
iPhone SE(4Πϯν) ʂ ʂ ʂ ʂ
iPhone XS Max(6.5Πϯν) ʂ ʂ ʂ ʂ ʂ
࣮ػʢiPhone6SʣͰ͔ͬΓ ֬ೝͯͨ͠πέ͕ɾɾɾ
None
AutoLayoutͱ • AutoLayoutɺϏϡʔʹઃఆ͞Ε͍ͯΔ੍ ʹج͍ͮͯɺϏϡʔ֊ͷͯ͢ͷϏϡʔͷ αΠζͱҐஔΛಈతʹܭࢉ͠·͢ • ը໘αΠζ͝ͱʹҰͭͣͭը໘Λ༻ҙ͠ͳ͘ ͍͍ͯʂ
1ɽͱͳΔViewΛ༻ҙ͢Δ
None
2ɽ͍ۙUIಉ࢜Ͱ੍Λ͚ͭΔ ʂ
None
ͪΐͬͱҰଉ
3ɽSafeAreaΛߟྀ͢Δ 4BGF"SFBʹ ࠂ͕ඃͬͯΔ
SafeAreaͱ https://developer.apple.com/design/human-interface-guidelines/ios/visual- design/adaptivity-and-layout/
ίʔυͰSafeAreaΛऔಘ͢Δ override func viewDidAppear(_ animated: Bool) { let admobView =
GADBannerView(adSize: kGADAdSizeBanner) if #available(iOS 11.0, *){ //iOS11Ҏ্Ͱ͋ΕSafeAreaΛऔಘͰ͖Δ admobView.frame.origin = CGPoint(x: 0, y: self.view.frame.size.height - admobView.frame.height - self.view.safeAreaInsets.bottom) }else{ admobView.frame.origin = CGPoint(x: 0, y: self.view.frame.size.height - admobView.frame.height) } ʙུʙ } ࢀߟɿhttps://techno-monkey.com/app-develop-iphonex-safearea/
None
StoryboardͰSafeAreaΛج४ʹͰ͖·͢
4ɽҰ୴ఘΊΔ ը૾ΛॏͶΔͱௐ ͕͔ͬͨ͠ͷͰ ࠓճఘΊͨ
5ɽޙಓʹௐ͢Δ ʮUnderstanding Auto LayoutʯΛΑ͘ಡΜͰɺ ࣮ࡍʹ੍Λࢼͯ͠Έͯɺ https://developer.apple.com/library/archive/documentation/UserExperience/ Conceptual/AutolayoutPG/AnatomyofaConstraint.html#//apple_ref/doc/uid/ TP40010853-CH9-SW1 ͳΜͱ͔͢Δɻ
https://twitter.com/llminatoll/status/ 1042368602068795393 AutoLayout
օ͞Μͷ࣮ػͰ͓ࢼ͍ͩ͘͠͞ ʢએʣ ͘͠ ʮϋϜɹԠԉՎʯ Ͱݕࡧ
ࠓޙͷ՝ • େ͖͍ը໘Λ༗ޮ׆༻ Ͱ͖͍ͯͳ͍ • จࣈαΠζ • ϘλϯαΠζ • ന͍ͱ͜Ζ͕ଟ͍
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ Githubʹը໘मਖ਼લͷϓϩδΣΫτ͕ஔ͍ͯ͋Γ ·͢ͷͰɺAutoLayoutͷ࿅शʹͬͯɺͲ͏ͧɻ https://github.com/shimayu22/hamuouenka- trial-production
ࢀߟ • https://qiita.com/t-matsuda820/items/bf2ea89b8395bc4532c2 • https://qiita.com/rd0501/items/18fe132d8ddf8ac4b589 • https://qiita.com/tomohisaota/items/f8857d01f328e34fb551 • https://developers.google.com/admob/ios/x-ad-rendering •
https://techno-monkey.com/app-develop-iphonex-safearea/ • https://qiita.com/reima21/items/ef02b865496528f0dc6b
Other Decks in Programming
See All in Programming
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
170
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
150
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.2k
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
180
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
320
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
110
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6k
Ruby から Emacs を操作したい
phigasui
0
110
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
433
67k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
sira's awesome portfolio website redesign presentation
elsirapls
0
510
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
The Cost Of JavaScript in 2023
addyosmani
56
10k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Evolving SEO for Evolving Search Engines
ryanjones
0
360
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Are puppies a ranking factor?
jonoalderson
2
4.2k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k