UiTableView inside another Table - xcode

I have a list of DataBase's records. In my screen I need a Table on the top of my page to show all these records then, when user tap one of this records, the table on bottom of my screen displays details about this record. So my first table, on top, has to be dynamic and my second table, on botton, could be even static.
My idea was to set UITableViewController to static then, in first table's section place one big row which contains a table:
- Before I tried placing a Table View directly inside this row,
- then I placed a container which contains an UITableViewController.
In both cases is a mess! I can't understand how to manage UITableViewDataSource for both tables and data's flow between them!
What's the best way to do something like that? Are there some tutorials??

Related

WCAG - should a table (row) with dynamically populated data be included in the tab order?

For an app a table, that is dynamically populated with data, is important.
How should I do the tab order for tables of data? I searched for guidelines, but could not find a good one so far.
Possibilities I see are:
Only include the table itsef using a 'tabindex=0' attribute in the 'table' tag.
Include the table rows in the tab order with a 'tabindex=0' attribute in the 'tr' tag.
I guess using the arrow keys will allow for detail navigation.
What do you advice?
The table itself and the rows themselves are generally not keyboard focusable because they're not interactive elements. If the row was selectable or expandable, then maybe it could be focusable but it's usually an element in the table row (or more accurately, an element in a the table cell) that is selectable or expandable.
Without more details on the behavior you're trying to achieve, it's hard to give exact advice, but my initial thought is that none of the table elements proper (<table>, <tr>, <td>) should be focusable.
Regarding arrow keys for navigation, that's the pattern for a grid, which is a type of table that has editable cells (similar to a spreadsheet). Again, I don't have enough info on your situation to know if a grid is what you're trying to create.
For screen reader users, they already have a way to navigate to the table and navigate within the table using the screen reader shortcut keys, so don't worry about trying to make things focusable for screen reader users.
Lately I heard another suggestion from an expert.
Generally speaking, all interactive elements should be included in the tab index, such as buttons, form fields and links. If the entire table row can be clicked, this should be in the tab flow by means of a tab index 0.

Xcode swift table inside table

I have a table view controller which has two different types of cells, one switches to the detail view of that cell, now the other cell is the problem one. I want that Cell to animate a swipe to make it look like its moving to a second table although it satys on the same and update the table view, so that it makes it look like I have a table inside a table without the need to make a second or thirt table view controller.
How could I do the animation and update part inside of one table view ?

Is it possible to have a button in each row of a table view in Xcode?

I have a table view loaded with 3 pieces of data in each row, formatted using a Table View Cell in IB. I would like to "hide" one piece of data with a button, that when pushed, will then be hidden so that the data that is behind the button will then be displayed.
Does anyone know if this is possible? I put my button in the Table View Cell, but I can't figure out how to get it set to the proper class in the File Owner.

Cocoa: how can I add custom row in table? or other way?

Is it possible to add different rows created in IB? What I mean is:
**All rows should be created not programatically, but with pre-created with objects.
Or maybe is other way to do this?? maybe without table??
No, you can't create a table with pre-existing rows from within IB.
You can however create text and image based table rows in IB, and lay them out, but you then have to write the table delegate code to load these from the xib and add them to the table as an when required.

How to create a table-view control

how to develop a scrolling table with rows which will have more than one dynamic data in one row ? It should take data from web browser.
You can create the table like view as described by Matt Lacey. For dynamic data you can create data-template for your table and bind them to your data source. When you click items in a list you can modify ur data source so that it will be reflected in your table.Note: Make sure to implement INotifyPropertyChanged so the changes in your data are reflected correctly on the UI.
To create a table, simply use a list where each item is a row in the grid and then template the item to display data inside a single row grid.
IMPORTANT: Be sure to set a fixed width on each cell so that all rows look the same and aren't resized independently.

Resources