Create Tab Bar App with Navigation in Swift 5 (Xcode 11) – 2022 iOS



In this video we will learn how to set up a tab bar controller with navigation controllers. This is a popular design / navigation pattern used by millions of apps on iOS. We will be working from scratch in Swift!

#swift #ios #tabs

💻 Source Code:
🎥 Subscribe for more:
😎 Like my teaching style? Check out some of my most popular courses:

This video is brought to you by Skillshare – an only community of teachers sharing awesome skills. Use the following link to get 2 months of FREE premium:

Timestamps
0:00 Intro
1:02 Create Xcode Project
2:02 Tab Bar Controller
5:40 Titles
6:30 Create Action
7:20 Testing Navigation
8:00 Wrap Up

Watch more new videos about iOS Academy | Synthesized by Mindovermetal English

Rate this post

Bài viết liên quan

Theo dõi
Thông báo của
guest
39 Comments
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận
iOS Academy

Enjoy my teaching style? Learn to build the TikTok App from scratch with my course!
https://ios-academy.teachable.com/p/building-tiktok-for-ios

ABDORIZAK Abdalla

Bro i Have a question i have a LoginVc if i want to reach TabbarC i use navigation controller.push so it show me Back btn so i didnt need that because i am checking if user Is logging ? How to reach using storyboard not programmatically thanks

Joaquin Pereira

How did you create that tab bar you have at the preview image of the video? Specially the alien icon. Thanks!

Yashaswi Bista

please help! I did all the steps in the video, but my xcode says that the tab controller is unreachable. What should I do?

atrcl95

Misleading thumbnail 😐

Arthur Kellett

Do you know of any way to have the app show the second tab on viewdidload? I tried self.tabBarController.selectedIndex = 1 but that's not doing anything. I also tried it in viewdidappear.

Isam Al Zareer

can i create buttons in the home view that take me to the settings view?

lemonian devil

how can I move the tab bar to the top of the screen?

Himansk ss

thank you sir, I was looking for this 🙂

Yinka Adeniran

Thanks for this vid. However mine can’t swipe between tabs. I have to click the button at the bottom of the screen. Did I miss something?

siripurapu aravind

How to add images instead of text? please let me know

Sema Nurdin

Thank you for awesome tutorials, they help so much!

Wade Sellers

This is an amazingly simple way to do this. Thank you for sharing!

Jai Ram

What are you doing at 6:59?

이상웅

GREAT Tutorial!

Mr. Grandma

How do we add icons to the tab bar for each page???

Paul Giorgi

there's no need to use a navigation controller. you can just use tab bar item on an empty view controller and link it to the main tab bar controller. anyway, nice video

3D LAYERS

Why do you need to create a new ViewController when the button is tapped? I'm not quite clear on that.

Michael Kang

What antivirus softwares do you recommend / use?

Shahad Asseri

thankkk u alot ٨_٨

Иван Воловик

Thank you so much! It is my first-day writing IOS Apps, and this video is such a good helper.

Emilio Serratos

Great video !!!
Thank you so much !!!!

Perry Gupta

I was trying to embed navigation controller in tab bar controllar itself smh

Morphacis

I can’t click and drag to connect the tab bar to the nav controller?

Brandi Taylor

I noticed when you go to the third vc and then back to the second, the red vc is still on the stack. Is there a best way to remove the red from the stack when you navigate to another vc via the tab bar? Are there any significant memory issues keeping it on the stack?

Sergio Guerrera

Can you port this to SwiftUI!?

Chasing Brews

How come you want to put them all through navigation controller stacks?

DonStudio

Thank you so much! I love this channel!

PhrogiWasHere

do you have a downloadable project?

Julio Ryuuzaki

click bait thumbnail. 👎🏻

Chasing Brews

Nice tutorial but I am struggling implementing this into an app that I have already made with multiple VCs. I have a bunch of VCs that are all embedded in a single navigation bar. Confused on where to really go from here because I don't know if I am supposed to now make more than one navigation bar for each vc instead of using the single one.

Carl Andrews

how do you add the center raised image in the photo of your iPhone

Xeeto

great vid!

Jamie L

how come the default isn't used and why use this way? what's the difference?

GEO RB

AMAZING VIDEO!!!! this is really great content!! keep this up!

Tranquility

Thats an amazing video. thank you, man.

Amarul Firdaus

If we run SFSafariViewController in one tab, can we make it run behind the tab bar? So that other tab are accessible, if not, what options do I have?

Amarul Firdaus

I run the simulator but it shows “hello, world” only, no tab bar, help please 😭

Ruben Dias

Nice video, but very basic. I wish you'd code the tab bar that is shown in the thumbnail image. That would be much more interesting.