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
特定のViewControllerを表示するときだけTabBarを隠したい
Search
TAKEDA Yuki
October 01, 2019
Technology
1
540
特定のViewControllerを表示するときだけTabBarを隠したい
TAKEDA Yuki
October 01, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
CDCL による厳密解法を採用した MILP ソルバー
imai448
3
140
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
330
TypeScriptの次なる大進化なるか!? 条件型を返り値とする関数の型推論
uhyo
2
1.7k
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
1
110
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
690
いざ、BSC討伐の旅
nikinusu
2
780
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
600
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
500
プロダクト活用度で見えた真実 ホリゾンタルSaaSでの顧客解像度の高め方
tadaken3
0
180
強いチームと開発生産性
onk
PRO
35
11k
Flutterによる 効率的なAndroid・iOS・Webアプリケーション開発の事例
recruitengineers
PRO
0
120
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Code Review Best Practice
trishagee
64
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
420
Art, The Web, and Tiny UX
lynnandtonic
297
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Unsuck your backbone
ammeep
668
57k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Transcript
ಛఆͷViewControllerΛදࣔ͢Δͱ͖͚ͩ TabBarΛӅ͍ͨ͠ ా ༔ᏻ potatotips #65
ࣗݾհ • ా ༔ᏻ (͚ͨͩ Ώ͏͖) • ୲αʔϏε • ϠϑΦΫʂ
iOS 0__1_tea teakun
ࠓճհ͢Δ͜ͱ
͜ͷViewControllerΛදࣔ͢Δͱ͖͚ͩTabBarΛӅ͍ͨ͠
લఏ TabBar → ← NavigationController
Demo https://github.com/teakun/HideTabSample
λϒΛফ͢ʹ hidesButtomBarWhenPushed … trueࢦఆͰλϒ͕ফ͑Δ
hidesButtomBarWhenPushed hidesButtomBarWhenPushed true false ͳ͔ͥӅΕͯ͠·͏
ͳͥͳͷ͔
hidesButtomBarWhenPushedͷڍಈΛ୳Δ hidesButtomBarWhenPushed hidesButtomBarWhenPushed true false
hidesButtomBarWhenPushedͷڍಈΛ୳Δ hidesButtomBarWhenPushed hidesButtomBarWhenPushed true false push࣌ͰNavigationControllerͷελοΫͷதʹ 1ͭͰhidesButtomBarWhenPushed͕trueͷ VC͕͋ΔͱTabBar͕ӅΕͯ͠·͏!
ͱ͍͏͜ͱͰ͜ͷΛղܾ͢Δ
ղܾࡦ hidesButtomBarWhenPushed hidesButtomBarWhenPushed true false
ղܾࡦ hidesButtomBarWhenPushed hidesButtomBarWhenPushed true → false false
࣮(push)
࣮(push) λϒΛӅ͍ͨ͠7$ͳΒ USVFΛೖΕΔ λϒΛදࣔ͢Δͱ͖ ͜Ε·ͰͷελοΫʹ͋Δ7$Ͱ GBMTFʹͳΔΑ͏ʹ
࣮(pop)
࣮(pop) λϒΛӅ͍ͨ͠VCͰpushͷͱ͖ʹ falseʹͨ͠ͷͰtrueʹ͢
None
·ͱΊ • ಛఆͷViewControllerΛදࣔ͢Δͱ͖͚ͩTabBarΛӅ͢ํ๏Λ ͝հ • ·ͩ·ͩUIKitΒͳ͍͜ͱͨ͘͞Μ͋ͬͨ