現在、UItableViewのcellをタップすると画面遷移するようstoryboardを使わず、コードのみで書いています。しかし、UItableViewはSimulatorに表示されますが、画面遷移はしません。そこで、どのようにコードを記述すれば、画面遷移するようになりますか?
一応、func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) の中にNavigationControllerで遷移させるコードは書いています。
swift
1 2 func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { 3 print("Num: \(indexPath.row)") 4 print("Value: \(myItems[indexPath.row])") 5 6 let forthViewContorller = ForthViewController() 7 self.navigationController?.pushViewController(forthViewContorller, animated: true) 8 } 9

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/01/28 15:40