ios - Table View In Swift -
After
I'm trying to see something like this to configure a page - where I have a table view inside It's a standard view controller with
my prototype
I have Cell is denied, so I can configure in these codes and add related images.
However, I am trying to set the code base to (i.e.) implementing the required table view methods, but many errors are occurring;
This is going to happen because This is the only apple when you have a UITableView and not a table in a normal view controller? If so, how do I manage my dynamic tables in the code?
Thank you for your time
a At least the following required actions: is not derived from its class UITableView When using a ViewController (not in a
UITableViewController ) as you are doing it, your custom ViewController is
UITableViewDataSource Code> and
UITableViewDelegate Protocol
class MyViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {... Func numberOfSectionsInTableView (TableView: UITableView) - & gt; Int {} func tableView (table view: UITableView, numberOfRowsInSection section: Int) - & gt; Int {} Fanch Tableview (Tableview: UITableView, CellForreindexpace indexpath: NSIndexpath) - & gt; UITableViewCell {}}
UITableViewController this does not
Removes override directions.
Comments
Post a Comment