[Solved] Populating a UITable with NSDictionary in SWIFT
Here’s what you’ll need to do: First, create a class variable for your data. Put this under your class declaration: var dataDict: [String:AnyObject]? Then, to keep things organized, put your tableView property and your userDetails property directly under the dataDict. @IBOutlet var tableView: UITableView! let userDetails: [String] = UserDefaults.standard.stringArray(forKey:”UserDetailsArray”) Now, your viewDidLoad method should look … Read more