Different Tab Bars when switching to different application function Swift Xcode 7 - user-interface

I have a tabbed application in Xcode 7, written in Swift 2.
It is a job search application. When you initially open the open you are brought to the job browse/search function. In one of the tabs you are able to select "Switch to Recruiter."
I would like to have this recruiter function in the app with a separate tab bar menu.
I've tried adding an additional tab bar controller in the storyboard as well as creating a new storyboard with a new tab bar controller and linking to it from the initial storyboard. In both instances, the original tab bar and the new tab bar are shown stacked at the bottom of the screen.
I obviously would like only the recruiter version of the tab bar to be shown when they are in that section of the app.
Does anyone have any suggestions for the best way to accomplish what I am trying to do?
Thanks!

It's as simple as creating 2 separate tabbars.
Made an example project.

Related

Bar Button Items Not Appearing When iOS Simulator Is Ran

I added 5 bar button items on my main view controller and linked them into code. I also created show segues from the bar button items to other view controllers. Although, when I run the iOS simulator none of my bar button items appear. Can someone help me?
I think you need constraints on your bottom bar, it's probably just not in the right place.
I took a look, tested some versions (you didn't make it easy) and found that if you add bar button items but don't add a toolbar there appears to be a toolbar in the storyboard but not when you run the app, nothing appears.
Instead, remove the items, add a toolbar, constrain it, then add the bar button items within it. You should have no more problems from there.
Good luck on your app! If you have any more questions, just send me a message.

Xcode 4.6.3 - Can't select tab bar item on Storyboard?

I'm currently on Xcode 4.6.3. I used storyboards in my project. Inside the storyboard is a tab bar controller and two table view controllers. I have the tab bar controller as the root view and I have it linked up with the two table view controllers via "relationship segue - view controllers".
The main problem I'm experiencing is that I can't seem to select the tab bar item in the storyboard so that I can change the name and the image for that tab bar. When I click on the tab bar, its properties does not appear in my inspector view, or at least, I don't see any property for the title and image. All I see is this
I've read through tutorials online that you can change the title and image of a tab bar item easily just by clicking the tab bar item to reveal the properties. Is this an issue with my version of Xcode?
I already figured it out. It has nothing to do with the Xcode version. The tab bar item subview was in the two table view controllers so just select it there to edit title and image. There's no tab bar item subview in the tab bar controller itself.
I see you have connected your tabs to TableViewControllers...You can edit by clicking the bottom tab of one of the TableViewControllers that you have connected to. If this doesn't work first try a sample project by just keeping your tabs as simple ViewControllers.

How do I add an "add" button to a tab in a uitableviewcontroller within a uitabbarcontroller?

xcode 4.6
using Storyboards
When I drag a Bar Button Item to the navigation bar at the top of one of the UITableViewControllers that are children of the UITabBarController xcode creates a new navigation bar at the bottom of the page instead of adding the button where I dropped it. I would be ok with this, but when I run the app the bottom navigation bar never shows up, so my button is never displayed.
If you need to visualize the app, picture the following: Root controller displays a list of accounts. When an account is clicked a tab controller lists tabs for opportunities and contacts. I need the ability to add opportunities and contacts from the relevant tab
Any help is greatly appreciated.
EDIT
I am not sure if this is the correct solution or not. I have embedded the uitableviewcontrollers in navigation controllers, which appears to have fixed the problem.
Follow-up question - Is this the correct way to handle this situation?
Yes, that is the correct way to handle this situation.
You should embed the view controller inside a navigation controller by clicking the view controller in your storyboard and using the Xcode menu "Editor" > "Embed In" > "Navigation Controller".

Tabbed scope bar like Xcode 4

Are there any open source implementations of a tabbed scope bar like Xcode 4 has? I have seen MGScopeBar, but it doesn't have the icon tab appearance I'm looking for. It uses recessed buttons, while Xcode's tabs have a full-height highlight.
You might want to have a look at
DMTabBar:
DMTabBar is a simple segmented control / bar that mimics the XCode 4 Inspector segmented control.
CocoaControls also provides heaps of other great Open Source Cocoa controls.
You can also check DOTabbar and create your custom tabbar item cell.

Xcode 4: Iphone - Adding a table view to an existing project

I'm new to programming IOS and I'm creating a small App for our College. This app consists of a main view that has a couple of buttons to open different things (Map, Welcome message from the Dean, Intro video, etc...). One of these buttons will open a table view that will show our 5 campuses. When they select a campus it will open a UIWebView that shows the information about that campus.
My problem is that I was able to add a nib to my project and place a tableview object in that nib. It displays, but I,m not able to get the navigation bar or navigation button to show.
Would you have any site or suggestions?
Thanks
Ren
You should try using an Navigation Controller. When you connect the other views to it, it will automatically add the bar and the button.
Good luck!

Resources