Xcode 8.1 - How to Update Frames for All Views in a Storyboard? - ios

In Xcode 8.1, I can update for each view in the storyboard by clicking on the "Update Frames" button. But I want to update all views, how I can do that?

They added one standalone button to the leftmost side in the constraints controls (it looks like a refresh button). And you can also look for "Update Frames", from the toolbar and selecting Editor -> Resolve Auto Layout Issues -> Update Frames if you want you can select "Apply to all views in container" as before.. for you reference attaching screenshots.
Update frames example video

It seems to update the frames hierarchically. If you select the main view or even the view controller and press the button, it will update frames for all child views.

If I understand you right you update frames when you have warnings about misplaced views. In this case, you can simply check the "Apply for all views in container" checkbox at the bottom of popup (which appears when you try to solve your warnings in the Document Outline) before pressing "Update Frames"

Related

How do I add a button to an existing group on the code context window?

I'd like to place a command button directly underneath the View Call Hierarchy button on the context window.
I've only been able to add a button at the very bottom of the entire menu using IDM_VS_CTXT_CODEWIN.
Is it even possible?
Theoretically, the menu item position is controlled by the Button priority attribute. And you can find other button priorities using the Command Explorer extension. But I didn't try it myself.

Xcode 8 view object library list hides behind the bar

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.

How can I set "Update Frames" to None in XCode 8.3?

I'm doing a the Ray Wanderlich iOS Appprentice and we are right now working with AutoLayout.
I'm asked to add some constraints to the this particular Table View and I can do so.
What I can't do is modify the "Update Frames" behavior. In this particular case, the book asks me to set it to None.
I can tell you that his is not the default behavior because my label has shrunk as per the warning in the book—see attached warning and image.
Note: If you had set Update Frames to “Items of New Constraints”, then Interface Builder would have moved the label to where the dotted
box is. That’s why you left it set to None because you didn’t want it
to do that here.
What can I do to do as the tutorial intends?
So either you click on the round arrow:
or by simply using this shortkey:

Xcode buttons/images always on top?

Is there an option for a button/image to set, that it will always be shown on top? So I have 2 buttons and want to add an image. But the image covers the two buttons and I have no idea how I could get the image in the background or the buttons in the front.
BTW: I´m fairly new to xcode and programming...
Use the xCode top menu item Editor->Arrange. There you have options to handle z index for controls.
What I did was, to have two button one for the label and one for the image and when one is clicked it propagates the message to the other and does the action depending on which one was clicked.

How to select background views in a storyboard or xib

If I select a view with my mouse in a storyboard or xib, Xcode will select the front most view. I know that I can select the other views in the document outline, but if I want to grab a background view to move it with my mouse, the front most view gets selected again when I click in the storyboard.
I think there is a way to cycle through the views and select the ones in the back by holding down on some keys, but I can't find what it is. Does anyone know?
I'm using Xcode 4.6. I know that I can also move background views using the size inspector, but I'm looking for a way to position them with my mouse.
One way is to use the jump bar at the top of the editor. It's the control that shows the path of objects leading to the current selection.
Another way is to press control+shift and left click (or shift right click) an item. That shows you all of the objects under the mouse in a menu, and allows you to disambiguate the one you meant to select.
The good news: Place your mouse on the overlapped images, press and hold shift and right click the mouse. You should see the list of objects, select your object in the back. You can resize as you wish.
The bad news: you can only use the cursor arrows if you want to move it!
Select the view from the menu on the left of interface builder.

Resources