Posts

Showing posts with the label uitabbarcontroller

How do I pass indexPathForSelectedRow into a UITabView via a UITabBarController?

Image
Clash Royale CLAN TAG #URR8PPP How do I pass indexPathForSelectedRow into a UITabView via a UITabBarController? I'm trying to segue from a UITableView to a specific tab within a UITabBarController . While googling, I found two sets of info that seem to indicate how to do, but neither were using a UITableView as the source. UITableView UITabBarController UITableView The first source is this wonderfully written answer I found here on StackOverflow: How to make a segue to second item of tab bar? The second source was this site: http://www.codingexplorer.com/segue-uitableviewcell-taps-swift/ I have been attempting to combine the two for my app. Below is a truncated version of my originating UIViewController (I can post the full one if needed, just most the code isn't related to this segue, I don't think): class BonusListViewController: UITableViewController { // MARK: - Table View Configuration override func numberOfSections(in tableView: UITableView) -> Int { ...