Missing <CLLocationManagerDelegate>?


#1

Wish I could tell you the page, but I am reading this book on an ipad.

In chapter 4 there are these lines.
// There will be a warning from this line of code; ingore it for now
[locationManager setDelegate:self}

But no where did I find a line telling you to add to the:

@interface WhereamiViewController : UIViewController

And I did a search for it.

Am I missing something; or did you leave something out?


#2

Hm, it’s definitely in there, I just checked. Is the search function on the iPad finding other text in the code snippets?


#3

Joe,

On the Kindle.

You have these two lines at Location 2697

// There will be a warning from this line of code; ingore it for now
[locationManager setDelegate:self]

At Location 2716 you tell the reader to “Build and run the application.”

You tell the reader to add this line at Location: 2810
@interface WhereamiViewController : UIViewController

So I guess I did not read far enough. But, you tell the reader to Build and run the Application" before you tell them to add the Delegate. So the program will not “build or run” at the point you tell them to try it.

So, I can not find CLLocationManagerDelegate in the kindle search before location 2716.

Minor issue…good book.


#4

The application will still build and run even without the there, you just get a warning.