view on top of tableview dissapears - objective-c

I have a problem with my tableview. My first problem is that I have a tableview with a view on top. In this view there are 3 buttons. I am building this using story board.
My problem with this is that what I scroll down, my view disappears. How can I set this that this view always stays on top? At the moment you can see this view as the 'first cell'.
Kind regards

If you look at the view hierarchy on the left hand side you'll see that your header view is a subview of the table, so it scrolls with it.
From that hierarchy view drag it out of the table view so that it's at the same level.
Also, resize your table so that it starts underneath the view with the header bar.
Tim

What if you select your view in Interface Builder, then go to Editor->Arrange->Send to front?

Related

Label outside the tableView in the same view Controller does not scroll along with table View

I want a label and a table view inside the same View Controller. I have added the objects in the storyboard but the problem is that the label is not scrolling along with the table view. I tried putting the label and the table view in a scroll view but this also doesn't help as the scroll view doesn't scroll.
Can anyone please tell me how can I scroll the label along with the table view.
Thanks in advance.

Table navigator moves out of view when the table longer than a screen size

I have a table view that has a navigation bar at the top. The problem is that when the table becomes full the navigation disappears when I scroll through the table. Is there any way of fixing it so that it does not move with the table?
Many thanks
You have added the NavigationBar to your UITableViews Header View...
The easiest way to solve your problem is, go to XCode Designer, where you have added the UITableView, and the UINavigationBar....
Cut or delete the NavigationBar
Move the TableView with drag and drop a little bit lower
Insert, or add a NavigationBar directly to the View, not in the TableView, then move the TableView higher, untill it fits under your NavBar. Also resize your TableView, to fit the Screen now...
After this the NavBar wont move while scrolling your TableView

Why does my view get distorted?

My view consists of a toolbar at the top and bottom of the view and an imageView in between.
I am adding subviews to my image view.
When a subview is added, the whole view sometimes becomes distorted. The imageView will stretch, a toolbar and the bar button items shift as well.
What causes this? Has anyone came across this before?
Suggestions to fixing this matter?
Note: I have set up this view in Interface Builder, not programmatically.
Thank you!

Shrink detail view controller animated when menu slides at UISplitViewController

I'm working with UISplitViewController on iPad and want to override it's behavior. When user taps on bar button, there are slides menu from the left side of screen. But it overlaps detail view controller. Can I make it so the detail view controller shrinks animated when the menu appears and expands when the menu disappears?
I don't think it's natively possible, so I think of 2 ways of doing this
1 - try and error: study the split delegate calls to see when you should shrink the content in your detail and tune it up until it looks smooth
2 - create your own "split" controller and do all the resizing/presenting by yourself

UISplitView and custom toolbar at bottom

So I have a Split View controller and am trying to put a toolbar at the bottom of my root view programmatically. I am currently adding it to the bottom of the table using the [self.tableView setTableFooterView:toolbar]; method. This works fine getting the toolbar on the screen, but it is not anchored to the bottom of the view. It always appears after the last element in the table. How would I go about anchoring it to the bottom of the root view? Should I set the frame to the bottom of the view, and then add it as a subview to the rootview itself? Or can I just adjust the frame and leave it as a component of the TableFooterView? Thanks
You have the right solution in your question.
Set the frame of your toolbar to the bottom of your root view. Be sure and make sure it's the frontmost view by calling:
[myRootView bringSubviewToFront:myBarView];