I recently updated my Xcode 9 to Xcode 10.1. At the right bottom of the inspector pane for storyboard, the searchbox that always used to be there for finding controls such as ViewController, UIImageView, UITextfield etc. and dragging them to the storyboard is missing. I can't find it anywhere in the menu structure.
Does anyone know how to get it to display?
It goes top right, left to the Show Standard Editor button.
you can access it with shift + cmd + L too.
Don't forget to select a xib or storyboard file first.
And it name is Library by the way.
Related
I founded an error in storyboard in Xcode8. In Inspector area in show library bar "Show the File Template library" and "Show the Code Snippet library" buttons are working properly. But when I click "Show the Object library" button I see that first item of the list is partially hidden behind the buttonbar. Why top margin there is not working properly and how I can solve this issue?
Its not an issue with storyboard. Might be cursor moved with your hand due to that its appearing like that.
Here is my storyboard:
and I know it looks crazy , so I plan to use storyboard reference to move the right part of the storyboard in to a new storyboard. and I googled ,it says press the shift can multi selected controllers ,but it dose not work.
so how can I move multi controllers at same time?
I have tried to use mouse ,but it only selected 5 controllers in the upper part 。
But I want to select all of them.
Just select them by dragging mouse:
And then press key Command + C to copy them,
then open the second Storyboard, press key Command + V to paste them.
Yes, it is possible.
Select controllers you want to copy
Press Command + C
Open your second storyboard file
Press Command + V
It is very easy no any key is required just select using mouse
i post the gif..
Hold down Option and scroll mouse wheel until minimum resolution, 6.25%
Click and Drag to select all view controllers - or ones you want to copy.
Click Edit->Copy or Use Ctrl+C
Go to Target Storyboard. Click Edit->Paste or Ctrl+V.
I tested this with about 40 controllers,looks like you have around that much. Old question, but new answer! :). In case anyone still looking.
Also I key-bind Option+Z to "Zoom to Fit" and this centers and displays all controllers with the Interface Builder canvas.
I'm trying to create an iOS app by using Macincloud but here's my problem. I'm trying to use Ctrl and drag to set a new root controller in the storyboard but Macincloud wont allow you to do this. Instead it just moves the NavigationView around the screen.
Does anyone have a solution to this or at least an alternative way of using Ctrl and drag.
Thanks
From the MacInCloud website shortly after you posted this question:
Problem: When using MacinCloud, the Ctrl+Drag operation does not work properly.
Cause: This is a common issue associated with controlling the Mac through a remote client software such as Remote Desktop Connection. Please see the solution for the current workaround.
Workaround:
Move a Controller in Interface Builder
Double-clicking the object in the side bar
Move it using the arrow keys
Use Interface Builder to connect a view element to file owner
Right-clicking the element
The popup appears, drag the circle on the right hand side of the property to what you want to link to
Connect two controls in Main Space or Document Outlines (left pane)
Point to the Target Control
RightClick to open context menu with available Connection points
Select a Connection circle at the left side of menu, circle becames a "+"
Click the "+" sign and drag it to the Source Control
Release mouse to create new connection
Create and connect new outlet (Assistant Editor mode)
Create a New Outlet manually in the Assistant Editor pane
Point to the New Outlet in Connection Inspector (right pane)
Select the New Outlet circle at the left side of Connection Inspector, circle becames a "+"
Click the "+" sign and drag it to the Source Control in the IB
Cite:
https://support.macincloud.com/support/solutions/articles/8000007774-alternative-method-to-ctrl-drag-control-drag-
I'm very new to Xcode (2 days) and so far I'm finding it fairly frustrating. I'm just trying to add an image to my app's ViewController via he Storyboard, but it does not appear on the simulator. Could someone assist me?
if you are trying an example project of XCode, you may find a "Images.xcassets" folder in project. Drag your image into this folder.
then go to storyboard, focus on your "Image View".
in the attributes list, "Image" field, you can choose the image in it's drop-down menu.
the try running in simulator
good luck!
Here are some details on xcode 10.
Edit the story board, create an image view. Wayne stated, add the image you want in the Images.xcassets.
Click on your image view:
Do View -> Inspectors -> Show Attribute Inspector
Select the image:
After loading your image in the " Assets.xcassets" folder you will need to find the "Attributes inspector" under your right side inspectors tab. Focus or click on your "Image view" that you have to place as a holder on the storyboard. On the right tab under the attributes inspector (looks like a down arrow next to the ruler) you can select your image from the drop-down selection. You may also want to change Content mode to Aspect Fit while you are there.
I was just wondering how I can select all outlets on xcode ios 8. Some of my labels are on top of each other, so I cant select them.
Thanks
Probably the most useful secret trick in Xcode's nib editor is to Shift-Control-click on an interface item in the canvas. This gives a menu where you can select that interface item or anything behind it.
If I understand you correctly, you are trying to select some elements but because they are overlapping you can't get to them.
Click on the box with a line in it as show in the illustration and it will show all your elements and you can select it from their. In previous Xcode versions it was an arrow instead of a line.
Thank you #matt for pointing out, that is called the Document Outline.