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
94
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
Other Decks in Programming
See All in Programming
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
AWSに止められる覚悟してますか?
morizo_1984
2
540
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
710
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2.5k
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
1
190
残高管理から台帳サービスへの進化
artoy
1
200
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
180
Workers Cache を知る
syumai
0
370
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
460
Between Models and Reality
mayunak
4
500
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Design in an AI World
tapps
1
350
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
410
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.3k
Typedesign – Prime Four
hannesfritz
42
3.2k
Visualization
eitanlees
153
17k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Discover your Explorer Soul
emna__ayadi
2
1.3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Transcript
νϡʔτϦΞϧ͔Β Ұาલਐ͢Δҝͷ 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