NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

Hacking with watchOS Tutorial Project 1 -- Thread 1: Fatal error

Forums > watchOS

Hi Paul, I purchased the Hacking with WatchOS tutorials back in March and am finally getting around to learning and I'm encountering a runtime error that I've been unable to correct. In Project 1, I was unable to get the numbered rows to display as shown on page 140; but I continued on.

My current issue is that when I run Project 1 on my Apple Watch, it correctly does the voice-to-text transcription; but then doesn't display the note after I select "done." In Xcode, it says" Thread 1: Fatal error: Unexpectedly found nil while implicilty unwrapping an Optional value."

When I compare this function with what's in the provided source code example, it looks identical; so unclear what I've done wrong here inside InterfaceController.swift. Please help.

func set(row rowIndex: Int, to text: String) {
    guard let row = table.rowController(at: rowIndex) as? NoteSelectRow else { return }
    row.textLabel.setText(text)
}

Thank you.

   

What I actually need to do is, while the scheduled notification's cause time has come, I need to call a feature that exams that worked with Gaming Expert the "is_complete?" flag and if it's far genuine, the notification isn't fired and otherwise, it's far fired.

   

Hacking with Swift is sponsored by Fernando Olivares

SPONSORED Would you describe yourself as knowledgeable, but struggling when you have to come up with your own code? Fernando Olivares has a new book containing iOS rules you can immediately apply to your coding habits to see dramatic improvements, while also teaching applied programming fundamentals seen in refactored code from published apps.

Try the book!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.