Question: IOS SwiftUI How can I fix these errors? FLIX Build FLIX: Failed Today at 4:53 PM A: 0 > FLIX F LIX MoviesViewController.swift) M tableView..cellFor
FLIX Build FLIX: Failed Today at 4:53 PM A: 0 > FLIX F LIX MoviesViewController.swift) M tableView..cellFor Rowat:) class Movies ViewController: UIViewController, UITableViewDatasource, UITableViewDelegates //step 1 to step up table view @IBOutlet var tableview: UIView! var movies = [[String:Any]]() override func viewDidLoad() { super.viewDidLoad() //step 3 to step up table view tableView.dataSource = self tableView.delegate = self O Value of type 'UIView?' has no member datasource O Value of type UIView has no member 'delegate let url = URL(string: "https://api.themoviedb.org/3/movieow playing?api_keywa67e22bc18f5cb1e6bfeccif83aded let request = URLRequest(url: url, cachePolicy: .reload IgnoringLocalCacheData, timeout Interval: 10) let session = URL Session(configuration: .default, delegate: nii, delegateQueue: OperationQueue.main) let task - session.dataTask (with: request) ((data, response, error) in 1 This will run when the network request returns if let error = error print(error.localizedDescription) } else if let data = data let dataDictionary - try! JSONSerialization.jsonObject (with: data, options: (1) asl (String: Any] self.movies = dataDictionary "results") asl ([String:Any)) O Value of type UIView has no member reloadDatar self.tableView.reloadData() print(dataDictionary) 1/ TODO: Get the array of movies // TODO: Store the movies in a property to use elsewhere 1/ TODO: Reload your table view data task.resume() // Do any additional setup after loading the view. 1/step 2 to step up table view fune tableViewe tableview: UITableview, numbero Rowe Insection section: Int) -> Int MacBook
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
