Should I select Statics cells or Dynamic Prototype - ios

hello I want to implement a table like this
first,I don't know what this table is using.
should I use static cells and sections or should I use dynamic Prototype with the style Grouped?
I am confused as I am new and don't know much difference in static cell and dynamic cell.
I want to ask How can I set left and right margins around tableView like this image?

Then you can Use Dynamic table View setting with custom TableView Cells. The process to setting the Custom Cells. you can follow the steps from here .
http://www.appcoda.com/customize-table-view-cells-for-uitableview/

Related

How to achieve a (almost) full view uitableview that can scroll past the last cell and show further elements in iOS

I have attached the below image because it describes my problem better than words:
So basically, I need the Title/Subtitles part at the top to always be static, after that a dynamic UITableView which will have a lot of cells (mostly will fill the rest of the screen), and then after that a few additional elements such as a Map View and etc.
I'm using storyboards/xibs for this so it was also an issue of how to constraint everything in the designer properly. Would a stack or scroll view be appropriate for this?
I think you can take two paths to achieve this.
The first is to create a custom cell containing the map and another containing the "Paragraph of text" thing.
Then you only need to push the cells at the end of the original data source.
Keep in mind that you need to add this cells to the RowsInSection function.
The other way is add a custom footer view to the tableView.
You can create a custom UIView containing the map an other info and then tell the table to take the custom view as footer:
tableView.tableFooterView = customView

Can we add tableview to cell?

I want to customize my tableview. I want to add another tableview in cell. Can we add tableview in cell of another tableview?
Please give me some ideas.
You can embed a UITableView into another UITableView's cell, but due to potential issues with the embedded UIScrollViews it is not recommended.
If you feel like you need a table in a table, first consider if it is not possible to achieve the desired behavior by using sections and cells in the sections (a section in a table might represent the top tableView's cell, and cells in the given section would represent the embedded tableView's cells).
There is no problem with adding a UITableView into a a UITableViewCell, since both of them are UIViews its simply would be translated to adding a subview to a view...
However, keep in mind to consider the following issues:
1- From a user experience perspective, that would be a vertical scroll view inside another vertical scroll view (are you ok with that?).
2- For each cell -in the main container table view-, you would need to handle the table view delegates/datasources. For understanding the logic of how this could be done, you might want to check:
Is it possible to add UITableView within a UITableViewCell.
Putting a UICollectionView in a UITableViewCell in Swift: although it is about adding a UICollectionView inside the cell, it helps to gain the logic of how to achieve such a task.

Expandable tableview in iOS

How to create this view for dynamic data in ios with checkboxed and radio button i searched it from many websites but didn't find. Please sugest me any reference or any solution.
I think the key is how to change content and height of a cell.
When user tap a cell, you need to change content of cell and add more views. After that, you need to set new row height without reload tableview. Here is a post about how to dynamic table view row height http://candycode.io/dynamic-uitableview-height-for-downloaded-images/.
I recommend you to take a look at HVTableView
This is a subclass of UITableView with expand/collapse feature that
comes useful in many scenarios.

Custom static table cells in XCode storyboard?

We are trying to teach our designer to create simple iOS apps using storyboards.
One thing we can't figure out though is a straightforward way to have custom static table cells.
Static in the sense that he can add static info to the cells in storyboards (not loaded from a database or anything).
The problem we're having is we can't work out how to make a custom cell with a custom layout.
We can create a custom layout programatically. However, in the storyboard bit doesn't show up the layout (it shows the layout of a standard table cell). So we can't fill in the extra labels and images and such.
Can we make a custom cell so that it will show up in storyboard and let us make static cells out of it?
Thanks
There is a property when you select the table view in the storyboard and you have to change it from Dynamic to Static and then you add the extra labels and images there.

How do I draw a multi-column UITableView?

I want to draw a multi-column UITableView like the picture below, which is different than a common Custom Cell.
How do I do this?
Is it horizontally scrollable? It doesn't look so.
If it's only vertically scrollable, use a regular UITableView. For each row, you use a UITableViewCell as usual. For each column, just use a UIButton or any widget that you like. In your screenshot, it looks like columns but there is no underlying concept of columns.
You can easily create custom UITableView cells by using Interface Builder and loading a custom nib. Look at http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html#//apple_ref/doc/uid/TP40007451-CH7 under the title "Loading Custom Table-View Cells From Nib Files".
http://usxue.is-programmer.com/posts/14176.html it will help you may be.
you can also see this link http://www.iphonedevx.com/?p=153
If you really want to use UITableView, just add 6 items per row in your UITableViewCell.

Resources