|
Hi there, Currently I'm on 16 day and I'm facing a problem that I cannot resolve at the moment. I'm not doing this course exactly as Paul because I'm not using storyboards. Could anybody check my code and let me know why didSelectRowAt is not taking me onto nextVC ? Within the console I've a message that says that row is tapped. I'm pasting code below:
Thank you in advance for your help!! Ps. I checked on Stackoverflow and within the google but I cannot find the right answer... or maybe I'm to tired ;) |
|
If I had to guess, you're missing a navigation controller. Try changing |
|
Thanks Paul for the tip however my app crashed when I added "!" to the navigation controller. Here's the message from console:
I'm pasting also code from DetailViewController.swift
Thank you in advance for your help :) |
|
I found a solution for my problem! Unfortunatelly within mt SceneDelegate.swift I forgot to add navigationController:
Now everything works perfectly :) |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.