Xcode tab bar items are not visible in storyboard - xcode

I have a Tab Bar Controller in a storyboard and I want to rearrange the items but I can't see any of the items. When I run it they display without a problem but they aren't visible in the storyboard. I am using XCode 6.1.1. Has anyone run into this?

Figured it out. I was using "Custom" tab bar items. The image for my custom tab bar item was defined only for one tab. And in this case tab bar items were not shown in the main tab bar controller. After adding some temporary images to every tab bar item I'm able to see them correctly in the main tab bar controller.
Definitely an Xcode bug.

I too ran into this problem for a moment and was able to overcome it by:
1) check any of the tab bar emblems (the destination emblems)
2) if there is a selected image, remove it
3) reload xcode
I don't know why this worked or why it was a problem in the first place, but I hope this helps.

Related

Xcode 12 - Project Navigator width is stuck/locked, can't resize

Every so often the project navigator/left panel is stuck at a fixed width. This is very annoying when I have extensions in separate files named MainViewController+<Extension name>, because the <Extension name> is truncated.
PhotoSlide... what???
Pressing the "Hide or show the Navigator" button doesn't do anything either.
Quitting Xcode and restarting works. But this takes time, and I lose my place. Is there any other way to fix the stuck width problem?
Please follow these steps if you don't want to reopen the Xcode everytime:
Right-click (or control-click) on any file
Select Open in New Window
And ta-da! You can now resize the project navigator freely!
Instead of opening a new window, just use a tab:
Open a new tab (⌘+T)
Close the old one
This also annoyed me....finally I clicked around and found the show/hide navigator icon on the very top left next to the os icons and clicked it...after that it could resize.
it is to the left of the play button fyi.
I have had success by re-sizing the entire Xcode window - make it smaller then larger and the navigator becomes resizable again.
Sad to say it, but restarting Xcode worked for me..
Here is another workaround. When the navigator gets stuck or locked, click on the "Debug" navigator (or View > Navigators > Debug menu item). Voilà, you now should have the ability to resize.
NOTE: You may have to do this a couple times by selecting another navigator or two and then re-selecting the debug navigator.
UPDATE: This doesn't work reliably. #Senseful has the best solution so far.

manual option is not showing in Xcode 11 assistant editor and how to add IBOutlet?

I recently updated to Xcode 11 and some of its user interface changed. in older version of Xcode there was options of accessing files in assistant editor using automatic or manual. but in this version of Xcode I can't see any manual option in assistant editor. so I am not able to add IBOutlet and IBAction methods to particular storyboard.
so can anyone tell me how to add these actions and outlets, that would be great help. thanks
By pressing the above button, Xcode will split the view and allow you to select a custom file using the file tree at the top.
You are correct.
The Manual option is no longer visible. You can still achieve the same result by doing a quick open using Cmd+Shift+O then type the name of any file you want to open. Press the Alt key and the file will open in the Assistant Editor Window.
As others have noted the new add editor button allows you to add new editors and open files into them. You could file a bug report but you may want to consider that you're likely to get a "works as designed" type of reply.
You can always change or add new keyboard shortcuts to get the behavior you want by viewing the preferences key bindings area and search for the command you want to shortcut.
Note
You can still ctrl+drag from storyboard to the class by the Adjust
Editor button in the upper right of the storyboard. Then just select
Assistant Editor on the list. After which you can make IBOutlets/IBActions.
open your storyboard, hold option key and select the file you want
In the documentation outline of storyboard, try to choose the "correct" item, which you want to set up outlet connections. Say you want to set up an outlet connection for cell of table/collection view.
View Controller > Collection View > Cell > Content View > Image View.
Try to select Cell, "Content View" or "Image View", then check the jump bar of assistant editor, you're probably able to switch to the .swift file you want.
Reference

Remove 'Show/Hide tab bar' menu item

The latest version of macOS Sierra adds a 'Show/Hide tab bar' menu item to the 'View' menu.
It does this dynamically.
My application already includes its own tab bar using the MMTabBarView library. I would prefer to continue using this library as it gives me backwards compatibility with tabs, plus the ability to do some customization to tabs.
I'm not seeing anything in apples NSDocument or NSDocumentController documentation on removing this menu item.
Does anyone have any suggestions as to how I can remove it?
NOTE: I do not want to simply disable it, I am looking to remove it completely. (Or I guess not have it added in the first place).
In Interface Builder, open the attributes of your NSWindow and you'll see an option called "Tabbing Mode". Set it to Disallowed.

How do I hide the VS Code view bar

Is there a way to hide/toggle the view bar (different than sidebar, shown below) in VS Code? Or at least, is there a plan to add a hide feature to this panel?
I could not find an option for this anywhere.
View -> Hide Activity Bar
Menu entry was changed at some point
View -> Appearance -> Hide Activity Bar
It's also possible to hide it from the context menu.
Command: workbench.action.toggleActivityBarVisibility
From Command Palette: Toggle Activity Bar Visibility
This is currently not possible, but the option has several open feature requests against it on github.
https://github.com/Microsoft/vscode/issues/1105

Cannot connect Objects to actions - no drag'n'drop option?

I have my MainMenu.xib with the Main Menu in it. I also have several NSObject subclasses as Menu Controllers, which are all represented in IB as objects, so that each Menu Item in the Main Menu corresponds to a dedicated Menu Controller
Whenever I try to drag'n'drop some menu item to its Menu Controller header and create an IBAction , Xcode does not give me that option. I suppose it's an Xcode bug, but I'm still confused...
When I created my first Menu Controller everything worked fine. However, now that I've added all Menu Controllers (the very same way as before), only the first one can be "linked" via IB.
What am I doing wrong? Any ideas on how to fix that?
Strange, Make sure the following
you have used the word "IBOutlet" for each to be linkable
clean the code
restart xcode
And just to make it clear,if you think its a bug in your XCode copy, try creating a sample project and see if it also do the strange behavior

Resources