Static TableViewCells Hidden Above Screen - ios

I had three UIPickerViews in a Static TableView that was working well and decided to delete top most UIPickerView. Now the UIPickerView that at the top of the view is hidden. If I swipe my TableView down, I can see it but cannot select it.
I believe my TableViewController is set up correctly but may be missing something. I tried deleting the TableViewController completely in StoryBoard but this did not correct it.
Has anyone encountered a problem like this? I can post code if necessary.
Thanks!

Related

UIRefreshControl hidden by a customview: how to proceed?

I've a UIViewController which contain an UITableView with a UIRefreshControl as a subview of this tableview.
When there is at least one element in the tableview, everything is fine. I can pull-to-refresh without issue.
However, I created recently a new custom view which mean to be displayed above the tableview when there is no element in it. It look like this:
The issue is: when there is this "no element" custom view displayed, my UIRefreshControl does not work anymore. It's a normal behavior: there is a view above my tableview so gesture controls are not working on the tableview.
So my question is: how can I manage my view so I will be able to pull-to-refresh even if there are this "no element" custom view above my tableview?
Thank you!
First you disable the user interaction of customView. Then may be it will be help you to resolve your problem.
Ok so I did not thougth enought about this question...
I just simply need to add this customview as a subview of my tableview.

TableView issue (weird Visualization)

I have a class (movieTable.m) with TableView populated with many cells.
As i Clicked one of them, the navigation controller brings in the other scene done in the StoryBoard.
When i get back, still with Navigation Controller, i find the TableView moved little bit down.
As I debugged the Hierarcy i found that UITableViewWrapperView is scrolled down from UITableView.
Edit: The funny thing is: if i put a UiSegmentedControl in the UiView the issue disappears.
Why this? i didn't tell the code to move it. Maybe I'm getting wrong with the timing?
so to making clear the ideas, there's two images:
Hierarchy before/after changing the scene
The Code if you want to see it is in this following GitHub: GitHub
Thank you all for helping&hints.
this worked for me
add
self.automaticallyAdjustsScrollViewInsets = NO;
to your viewDidLoad of the moveiTable.m

Table View with extra View. View keep resizing to maximum

I have a tableview, that is working fine. I have added a view to the top, so I can add some extra fields. I can't post images yet, so going to try and describe.
Navigation Bar
View
TableView
When I build it, it looks good.. However when I run or close the project and reopen I get this:
Navigation Bar
View
TableView
With the view taking up the complete page, pushing the TableView to the very bottom.
Any thoughts on why this is happening and how to fix it?? I can resize it back to the size I want using the size inspector, but it doesn't keep the value.
I have built a test project with the same screen layout and it works perfectly. I can't see what is different between the two projects is. Thanks
Yes, this was an auto layout problem.. After looking around the web, and trying various solutions I decided to use a view controller, and add my own tableview and tablefviewcell to that, along with my other labels and buttons. Once I built the methods the first time, I found this to be much cleaner solution, than attempting to mess around with the tableviewcontroller.

Illegal configuration. Connection "cell" cannot have a prototype object as its destination

I have 2 errors
"Illegal configuration. Connection "cell" cannot have a prototype object as
its destination"
Connections dont duplicate, cells are empty, without other controls in them. I try to clean project and rebuild it, but it didnt help me. How can I fix it? Thank you
Are you trying to link outlets of the cells (or elements of the cells) directly to the view controller? That would be a problem.
If you want your table view to always have the same content, you can change its content to "static cells" in the storyboard, and then you can link it like that.
If you want the table view cells to change dynamically, you cannot do it that way. You need to create a UITableViewCell subclass for your cells, and create the outlets there.
If this doesn't help at all, please explain your problem a bit better.
You probably have an outlet from something like your view controller that's connected to a prototype cell in a table view. An outlet is a to-one relationship. The cell is going to be instantiated many times, so this doesn't make sense, and is an error.
The problem might be that the outlet from the ViewController was not connected to the desired object at all, although it might be connected from the desired object to the ViewController.
for example: the IBAction outlet can be seen from the UIButton's connection inspector for "touch up inside" as linked to the ViewController's IBAction method, but the ViewController's connection inspector will not link the IBAction method to the UIButton.
Same error when I copied/pasted the admob banner view from the official sample into my tableViewCell and connected the IBOutlet from viewController. So, Tiago Lira's explanation worked for me and I created the custom cell class and added banner iboutlet there. Thus the compile time error got resolved. The above question should be accepted.
The only reason for this error is that you have copied a storyboard item- It might be whole view controller or any sub element like the view, button, and label etc. So now the problem is that they have linked each other and now you have to find what is it and delete it.
But if you have copied the whole view controller and you have checked
all possible links you could but still you getting error then this
trick is for you- Copy the main view of that view controller and
delete that VC then a make new VC and paste the copied view in that
VC, so your constraints are safe you just have to give top, bottom,
left and right constraints for the main view.
I found a solution. I delete and add new cell many times, and finally project build without errors

uitableview not reload again in half view like facebook Half view

I have made an application, in which I have used uitableview in Half view like facebook, when I go to half view using swipe, then uitableview does not reload, but it reloads when I run it first time,So if anyone knows about it, please tell me.
Thanks
I have subclassed JASidePanel and in that subclass I override a method as show below:
- (void)toggleLeftPanel:(id)sender
{
[((MyLeftPanelViewController *)self.leftPanel) myReloadMethodInMyLeftPanelViewController];
[super toggleLeftPanel:sender];
}
This works when using the left navigation button to navigate to the left panel, but I think a similar approach would work for swipe. I figured this out by looking in the header file for JASidePanel and then tracing the code.

Resources