Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

IOS SwiftUI How can I fix these errors? image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago