Bob Samuels
Bob Samuels

Reputation: 53

Tab Bar Controller won't show Tab Bar Item in Swift

I have created a Tab Bar Controller in Swift, but the Tab Bar Item will not show up. The tab bar view controller is being opened from another view controller via a segue between the other view controller (not a UIButton, but directly from the view controller) and the tab bar view controller. I feel like this has something to do with it, but I am not sure. Here is an image of my storyboard in Xcode:

My Storyboard

Upvotes: 1

Views: 1725

Answers (1)

iOS Geek
iOS Geek

Reputation: 4855

enter image description here

You need Two Segues Here From Your Very First Screen

Segue 1 : Navigate to Get Start Screen Where submit Button is connected on click of Get Started Button

Segue 2 : Navigate to TabBarController Directly on click of Go Directly Button

Segues From GetStarted Screen

Segue 1 : Navigate to Tab Bar Controller on click of Submit Button

Note

-> You had Connected a Segue From veryFirst Screen to GetStarted Screen Thats Correct

-> From GetStarted Screen you had connected a Segue to First TabBar Screen instead of TabBar controller

Expected Output

Navigate through Get Started Screen

enter image description here

Navigate Directly

enter image description here

Upvotes: 2

Related Questions