I have a tab bar controller. I can change the image of the tab bar icon using the storyboard, and I can select a custom image and it works. However, I see in the list of images many system images, and I would like to use them, but they don't appear when I run the app. I see them in the storyboard fine, but when I run the app I just see the title of the tab bar text, but not the image.
Thanks
Related
I have a tab bar controller and I have set both images using assets for selected and unselected icons. The icons show up correctly in interface builder
when I spin it up on the simulator and that tab is unselected, it shows something like:
But as soon as it's selected, it shows something like:
Removing view controllers along with tab bar controller and adding them again fixed this issue. Don't exactly know which setting was causing it but it got fixed by this method.
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.
When I'm making edits in storyboard I know how to show the preview in the assistant editor (as shown in the below screen shot).
How to show the preview in a separate window, so that I'll be able to drag it to my the screen attached to my computer?
UPDATE: Adding few more images to clarify what is the "Storyboard Preview":
In XCode 7 I managed to do this by selecting File -> New window, then adding a preview-part teh same way you illustrate above. I then drag it to my secondary screen resize everything to give a good preview of the screen sizes I want.
I am going round in circles trying to get a custom view to scroll correctly.
To simplify this.
I create a new OSX cocoa application.
Go to the xib file, select the window. drag a custom view, then drag a few buttons into it.
Run the program, you have a button in the screen.
Now go back the custom view, select editor -> embed in -> Scroll view
Everything looks fine, and suggests you will have two buttons with scroll bars in the custom view.
Run the program, the custom view shows with scroll bars, but the button do not show.
What am I doing wrong?
Following your instructions I have created and changed the project. No problem.
Run in IB your "app", CMD R. The user interface itself can be checked in this way.
If problem remains
Check the layer position->Click on the custom View
Is it possible to Layout->Send to back? If yes, then your button-scrollview is not embedded.
Unembed the button, view and repeat the process, by checking in IB if now the interface shows appears correctly.
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.