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

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

Related

Next and Previous button for looping scrollView

I have a UIScroll view that scrolls between 4 different XIBs. I would like to disable the ability of scrolling by touching the scroll view. There are two buttons at the bottom of my app that I would like to scroll forward and back in a loop. The ViewController is forced to be in landscape orientation, and the scroll view dimensions are 568w x 217h.
Here is an image of the layout: Click Here
What you are tying to do is called "paging", and in my opinion a scroll view in not the best way to do so... here is a great project that looks like what you need:
https://github.com/caesarcat/InfinitePagingView
Hope this helps

Can't seem to achieve the same effect on my slide menu as Any.Do

I am trying to create the same type of slide-up/pull-up menu (from the bottom) as the Any.do iPhone app, but not having any success.
The issue I am running into is the app was built with storyboards so I am thinking I might have to scratch that idea and use just code.
Any ideas?
There is no need to get rid of your storyboard to recreate this, that's what IBOutlets are for. Any way, it looks like this was made by creating a UIScrollView that takes up the entire screen. Then add a UITableView to the upper section of the scroll view. Mind you in order for this to work, you'll need to disable scrolling on the scroll view in the background.
From there you can programmatically add the other elements to the scroll view to be rendered off screen, since there are only three they can probably just be buttons. And finally, since scrolling is disabled on the background scroll view you can add an image with a UISwipeGestureRecognizer at the bottom of the screen to manually change the scroll view's content offset property.

Horizontally and vertically scrolling table view

I am trying to create a table view that scrolls horizontally and vertically like TeacherKit app.
If I scroll vertically, first row is fixed and if I scroll horizontally, first column is fixed.
Do you guys have any suggestions for that?
This is the screenshot from TeacherKit app.
https://www.dropbox.com/s/65cknxg9vnea8jq/Photo%20Nov%2015%2C%2012%2027%2010%20AM.png
The most common solution is to create a UIScrollView with the same size of your UITableview, and place your table INSIDE the scroll view.
In this situation, the table won't scroll because is fully contained in the scrollView (it has the same size) and you will scroll the scrollView
Let us know how it goes!

view on top of tableview dissapears

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?

2 uitableviews in 1 and make their heights change dynamically

I'm trying to accomplish the following. I got 2 uitableviews in a single uitableviewcontroller and at the bottom of the view I have a button. As soon as I click on that button (width of table view) it moves (with animation) to the center of the screen. Now I want the second uitableview to move with it and the first one (was fullscreen before) to shrink. So that at the end I'd have 2 uitableview showing data at the same time.
Clicking again on that button would, you guessed it, move it to the bottom of the screen, hiding the second uitableview so that the first one is in fullscreen again.
Any hints/ideas/code how I could accomplish that?
You cannot use a UITableViewController. You need a UIViewController, throw in 2 UITableViews, make them #propertys of the view controller, and handle their data source and delegate methods as normal.
Then when you press the button, you can change the frames of the two table views just as you change the frame of any UIView.