Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct lists {
- var title : String!
- var description : String!
- }
- var list = Dictionary<String, String>()
- var listArray = [lists]()
- list.updateValue("InquiryNumberCode", forKey: InquiryNumberCode)
- list.updateValue("InquiryNumberDescription", forKey: InquiryNumberDescription)
- list.updateValue("InquiryNumberValue", forKey: InquiryNumberValue)
- for (description, title) in list {
- print("(title): (description)")
- listArray.append(lists(title: title , description: description ))
- }
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: "detail", for: indexPath) as! DetailTableViewCell
- let celldata = listArray[indexPath.section]
- cell.titleOutlet.text = celldata.title[indexPath.row]
- return cell
- }
Add Comment
Please, Sign In to add comment