kitasuke / PagingMenuController

Paging view controller with customizable menu in Swift
MIT License
2.5k stars 449 forks source link

help tableview didselect delegate function #356

Open aboutyu opened 7 years ago

aboutyu commented 7 years ago

Hi, I am a beginer who get started 2 month ago

I'm made paging menu using PagingMenuController, but have one issue. I made Navigationcontroller at first, import PagingController, and addSubView ViewController (using tableviewcontroller)

I need to go to the detailView when I touch on it, but I can not move it. please help me.

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let parentsView = ProductListViewController() parentsView.moveDetailView(str: "https://m.naver.com") } func moveDetailView(str: String) { let sb = UIStoryboard(name: "Main", bundle: nil) if let uvc = sb.instantiateViewController(withIdentifier: "ProductDetailViewController") as? ProductDetailViewController { uvc.linkUrl = str self.navigationController?.pushViewController(uvc, animated: true) } }
aboutyu commented 7 years ago

I clear this issue. Have a nice day~