I looked at many guides on table views, table cells, etc. When creating a table view, why choose a UIViewController over a UITableViewController in Xcode? For example, what would be the main advantages of creating a UIViewController and then adding a tableView object just by creating a UITableViewController? I have already created a large number of scenes in the storyboard, and I hope I did not stop there. Hope my question is clear as I am new to coding!
UIViewControllergives you more control over tableview, not UITableViewController. You should use it UITableViewControlleronly when you are just interested in the table view in the controller. But if you want to add more subviews / controls in a controller other than tableview, then you should use UIViewController.
UIViewController
tableview
UITableViewController
Example:
If you just want to display a list of grocery items with some headers and footers, then the tableviewcontroller should be prioritized. But if you want to display mail items in a tableview, you will need additional buttons to change the items in the mail (tableview). In the following case, you will use the viewcontroller. I hope my point is clear.
, View Controller - , , UItableview. UITableViewController UIViewController, , . , , UITableView. , , UITableViewController, , UIViewController, UIViewController.
Source: https://habr.com/ru/post/1538131/More articles:Autostart with the image, 2 labels, button - labels disappear after rotation - iosBookmark pandas boxes next to each other in iPython Notebook - pythonContext manager for optionally redirected I / O - pythonProcess files with the same name as auto-c ++How to generate a PNG image from a point file format using Graphviz - javaNullPointerException in com.google.android.youtube.player.YouTubePlayerSupportFragment.onStart (Unknown source) - androidUIPageViewController Page Indicator Position - iosGuice Synthetic Warning - javaMultiplication Decimal and Integer F # - type-conversionduplicate symbol in external structure - iosAll Articles