Created
February 8, 2019 20:46
-
-
Save phylliswong/d2d3fe33847954fc5dbb19766763691a to your computer and use it in GitHub Desktop.
shopsTableview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension ShopsViewController: UITableViewDelegate { | |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
let selectedShop = fetchedResultsController.object(at: indexPath) | |
let st = UIStoryboardname: "Main", bundle: Bundle.main) | |
let vc = st.instantiateViewController(withIdentifier: "EmployeeViewController") as! EmployeeViewController | |
vc.shop = selectedShop | |
self.navigationController?.pushViewController(vc, animated: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment