Chapter 44, Landscape. page1237

ok, I’m lost here. what am I doing wrong?

everything is working fine, I have typed in the additional viewDidLoad() code as noted (numerous times). I have also cut and pasted from the final code supplied with publication in case I’m just typing something stupid. added the other code on following pages… no variations, exactly as noted, and also cut and pasted from supplied code. I have also followed through all the warnings. but no matter what I do I can’t get past this run point as I always get “error on line 23”

23 pageControl.removeConstraints(pageControl.constraints)

stating,

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /Users/…/StoreSearch/StoreSearch/LandscapeViewController.swift, line 23

(lldb)

@zoran Do you still have issues with this?

Hi, only get error on real device, but works in simulator. I just kept going with simulator for a while… checking real device every so often until it just seemed to fix itself. No idea why, but finished book now and on to next one.

Thanks.

This topic was automatically closed after 166 days. New replies are no longer allowed.