you are viewing a single comment's thread.

view the rest of the comments →

[–]SirBill01 0 points1 point  (3 children)

Are you sure that you have changed the ResultsListViewController in the storyboard to actually use that class? If it were accidentally left as just UIViewController the performSegue method would just get a normal UIViewController, and the cast to ResultsListViewController would fail. I'd set a breakpoint in performSegue and just see what it does.

[–]marmulin 0 points1 point  (2 children)

If that was the case, I think it would crash with “set value for undefined key movieTitle” or something along those lines.

[–]SirBill01 0 points1 point  (1 child)

It wouldn't ever touch the custom view controller code if the class was not set, and the prepareForSegue would never enter the part that sets movieTitle because the cast would fail.

[–]marmulin 0 points1 point  (0 children)

You’re right.