I connected to API using Alamofire
and SwiftyJson
.
I got this JSON return:
{
\"contacts\": [
{
You need to implement UITableViewDataSource
and UITableViewDelegate
like this
class ViewController:UIViewController, UITableViewDataSource, UITableViewDelegate
and in viewDidLoad
you need to assign DataSource
and Delegate
to your tableView like this
override func viewDidLoad() {
super.viewDidLoad()
tblJSON.dataSource = self
tblJSON.delegate = self
getRequest()
}