Lower Z index of view in storyboard - swift

I created a tab bar with UIView in the storyboard, and after that I decided to add a UIImageView under the tab bar view. The image must be at the bottom, behind the tab bar, but the image view overlaps my tab bar. How do I lower my image view's z-index to fix the problem?
I've already tried moving the tab bar up in the Document Outline:
Pictures for understanding:

First make sure the Document Outline is opened in your storyboard. It's the icon at the bottom-left of your screen.
Then just drag the image view before the tab bar. This will bring it to the bottom.

Related

Draggable UIView is interacting undesirably with Tab Bar

I have a UIView that I can drag around the screen via UIPanGestureRecognizer. However, when I drag it down to the bottom of the screen, the view automatically starts to squish vertically when it touches the tab bar. If I keep dragging downward, it will eventually be allowed to drag under the tab bar.
I don't want it to interact with the tab bar at all though. It should just slide under it as if it weren't there. The view controller has Extend Edges Under Top Bars and Extend Edges Under Bottom Bars checked.
Why is the view interacting with the tab bar in the first place? And how do I prevent this behavior?
Finally fixed this by unchecking the "Extend Edges Under Bottom Bars" option on the view controller. The view now slides unimpeded under the tab bar.

XCode 6 - Navigation Bar width Button

I have an "Any Any" View Controller. There I placed a Navigation Bar and set "Horizontal Center in Container". Now it's in the middle of my View.
But when I place a Bar Button Item on the right hand side of the Navigation Bar, it only disappears in landscape on my iphone 5s. How can I set the width of the Navigation Bar to 100%?
Thank you!
I'm no Auto Layout expert, but this works for me. You should have 3 constraints for your Navigation Bar:
Trailing Space to Superview
Leading Space to Superview
Top Space to Superview
These should all have constants of zero.
This process worked for me:
Delete the constraints for the Navigation Bar
Select the Navigation Bar in the Document Outline
Click the Resolve Auto Layout Issues button |-^-| and select Add Missing Constraints.

how should i add a textfield/button to a table view controller?

I have a UITableViewController with a nav bar up top from an embedded nav controller. In between the nav bar and the start of the cells I'm trying to add a textfield and button sort of like a search bar layout but for a different purpose.
On my storyboard, I can drag in a button or a label, but it automatically fills the width of the scene. As a result there is only room for one or the other. I tried editing with the size inspector in the right pane but it reverts to the old number everytime.
How would I pull this layout off?
Create a view with the label/text field and the button then drag the view to the top of the tableview. It will add the view as a header view.

issue in StoryBoard: Other views at the top of the table view are not visable

I have started an app using story board.
In that i have used tabbar controller
In a view, I have Table view in that having a custom cell, And I have added a search bar at the top of the Table view. as shown bellow
The problem is when I add Search bar very close to the navigation bar, It does not display and if i added little down it was displayed
what was the issue is in 2px difference?
Go to IB Inspector
Select search bar and set AutoSizing Mask like this attached Picture.. Enable left, right, top and center position.

Displaying a ToolBar above the Tabbar

I have a scroll View. Now i need to add a tool bar when a button is clicked (above the tab bar). Since this is a scroll View, even if the user scrolls the page down the tool bar should be visible right above the toolbar.
my solution so far;
1.) i added the toolbar to a Window, and display the window (But i don't want to use a Window). Is there a way to do this using a UIView ?
My pseudocode : ToolBar ---(added to)--> UIWindow ----(display)--->
display
Create a containing view to house both your scroll view and the toolbar. Initially have your scroll view the full size within the containing view. Resize it smaller on button press and add the toolbar below it. When you hide the toolbar do the reverse (remove the toolbar from the containing view and resize the scroll view back to taking up the full view).