SWRevealViewController Table not Displaying Static Cells - ios

What am i doing wrong with my table view when implementing SWRevalViewController?
I've followed all the tutorials and as far i know everything is configured correctly. I've got the tableview displaying but none of the cells are showing.
They are just static labels.
I've tried, a normal viewcontroller with a tableview and cells added, and I've tried a table view controller as per the images below. i can only assume that I'm doing something wrong with how I've populated the table or maybe something to do with the prototype cell, which even if i delete it I'm still left with "prototype cell" as something of a header. (see last image)
thanks for any ideas, been staring at this for a day now.

Related

Accessibility focus goes in space in between the cells in a table view

I am using a table view to show my data. There is no separator view in between the cells but when I switch on the voice over, the focus after on the cell, goes in the space between the two cells ans then on another swipe goes to the next cell.
I am not able to figure out what's going wrong.
The tableView is being imported from another framework, where it is working fine.
The separatorStyle for tableView is set to none.
I just figured out the problem.
In the framework where tableView is populated, array.filter{ !$0.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty } was missing at one place where the tableView was passed with the array as data.
so, that focus was on cells with empty spaces as data.
Thank you

Variable Cells in UITable

I want to build TableView like this.
Click Here to See Table View Mock up Picture
It is not problem for fixed cells.
But problem is cells are variable.
As you can see the picture, if you press "Mould" in 2nd section then 3rd section shows Mould cells only.
These properties are all in every section.
How to build table view like this?

UITableView Partially Blank in Storyboard

When trying to view a larger UITableView inside of a UIViewController in the storyboard, I can only see/edit the top most cells from the table. The moment I scroll further down the cells are all blank. This is purely for storyboard, the code works fine when running, but any cells in the storyboard that are further down a tableview I can no longer edit since they show as blank.
Here's an example to illustrate
As can be seen from the shift right click, I can't even select the cells that are there.
I know and have experienced problems such as not being able to scroll at all before, such as this, but this is different as I can scroll down but cannot see the rest of the cells of my tableview. Has anyone else ran into this problem, and would know a solution? It seems like it may have something to do with Xcode 7, as I recently upgraded to it.
Although not ideal, I've found a few work arounds for this problem. One solution is to make a temporary UIViewController with a UITableView, and then drag cells into the temp UIViewController until the cell you want to edit is visible. Once you've changed it, drag all the cells in the temporary view controller back into their correct controller. This is extremely hacky, but so far is the only way I've found to visibly see the cell.
Another thing that can be done is that the cells are still editable in the document outline, meaning constraints and elements can still be modified from there. However, it is difficult, as I wasn't able to see the cells being edited, they still appear to be blank.
Hopefully someone else finds/knows of a solution to this and can post it, I'll leave these two workarounds up though they're far from ideal.

Buttons and segmentedControl on UICollectionReusableView

I am creating a UICollectionView with 2 sections. First section being a parallax Header and the second section header being a subclass of the UICollectionResuableView and it always sticks at the top. On the ReusableView, it has 4 buttons and a segmentedControl. Segmented Control is used for displaying the data in either grid view or list view. The 4 buttons are for displaying different types of data.
Everything seems to work fine but I noticed that when more data is loaded, at some point all buttons and the segmented control on the ReusableView stop responding. However the collectionView is still scrollable. After a few scroll up and down the ReusableView will respond again. Another problem that I noticed is that the selected index of the segmentedControl sometimes got changed (visually, display data remains correct) after a reload.
I exhausted all possible causes that I can think of... Has anyone came across similar problems? I am using Interface Builder and not storyboard btw.
Thanks in advance.

cell.accessoryType is not visible and tableView:didSelectRowAtIndexPath: doesn't works

I've a customized split view for iPad, on the left part I have the KalController (https://github.com/klazuka/Kal) the calendar component and the tableView with the events of the selected day on the Kal Date Picker.
On the other hand, I have another subview ont the right with an standard UITableView listing the next events.
When one of the rows is selected on the Kal tableView, the right TableView push the detail view of the event on the navigation Controller.
But, I don't know why, althought the rows of both UITableView has the same code, the second table view, (the right one) present two problems:
- The cells has no cell.accessoryType
- Althought the Controller has the delegate properly set, the method tableView:didSelectRowAtIndexPath: was never been raised ...
Anybody knows if there is any restriction of the number of TableViews to be displayed in the same View ... I believe should be posible ... but something doesn't works.
Of course, in The NIB the UITableView has properly set the dataSource and delegate...
Any suggestion?
Thank you,
Solved ...
the problem was the height of the rows.
In the test behaviour I had just one row, and this is the reason because it has been displayed perfectly.

Resources