Variable Cells in UITable - ios

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?

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

Controlling Table display from another view

I am trying to display a table on the home view with 10 potential cells.
I need to press a button, go to the next view and select which cells I want to use via switches.
For example, if the switch is on, the cell is displayed. If the switch is off the cell will not be displayed and there will not be a gap between displayed cells on the previous page.
Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point

SWRevealViewController Table not Displaying Static Cells

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.

Editing a UITableView that contains dynamic data in each row?

I have a UITableView that is separated into sections with one row each. Each row contains a horizontally scrolled UICollectionView. I am wanting to add the functionality for editing this list when I tap a general edit button in the top of my Navigation Controller. The issue that I'm thinking of is that all of the content will still move around and be active (tapping on a cell in the CollectionView will open a different page). I am wanting the edit mode to either disable that functionality or slide all of the content over simultaneously and have an edit button next to them all. When this edit button is pressed it will take the user to an edit page specific to that rows content (so no delete functionality here). Another reason why I am having a difficult time is that all of the content in the table will be loaded via data so I don't want to reload any of it.
Bottom line is that I need to select a single row and it must be done via a button that slides in or altering the functionality of the content there to act as a button. I cannot reload the data in the rows, though because it is loaded via internet data.

Adding cells to UITableView when all cells are static (designed in storyboard)

I have a UITableView with 5 sections. All sections contain 2 static cells. What I want to achieve is to insert a new cell to one of my section when user taps some button. I know how to add cells with animation when UITableView contains only dynamic cells, I have no idea how to do this with 100% static UITableView.
The point is to that in one of my cells I have a text input and a button. After user taps the button, input content must be validated. If validation fails then I want to add an extra cell with error info.
Thanks in advance for your help!
Here you able to find how to add static cells using story board.Show configure table view as static cells and create outlets according to your app design.

Resources