Xcode swift table inside table - xcode

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 ?

Related

UiTableView inside another Table

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??

One TableView implemented in several ViewControllers

I am looking for a way to create a TableView to show a list of posts on a social networking site. I want to place the exact same prototype table in several ViewControllers and based on the current ViewController, it will be populated with different information. Is there a way to do this with Storyboard? I assume that this is quite easy using only code, but I would like to drag and drop elements to create the prototype cell.
Thanks
For each view controller you should create a new table view. You could reuse table view cells by creating a custom nib cell and populating each table view accordingly.
This is a good tutorial on how to populate a table view with an rss feed.
https://www.youtube.com/watch?v=NyrGnbzXpxk
You can then find the rss feed of each social media page that you want to include in each 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