iOS – MapKit and Text Input

I’m still working through Joe Conway’s iPhone Programming text and I’m up to Chapter 5. Using an app called Whereami, it guides us through the MapKit framework and how to input text into a field to gather a location name. That portion doesn’t actually work, but I suspect that’s coming up in later chapters.

For now, the app launches and since we’re using the simulator, it locks us into zooming at Apple’s Cupertino campus instead of actually locating where I really am here in Indianapolis.

Up to this point, I can say that I’ve learned things, but I don’t think it’s anything that the book necessarily wanted or intended at any point in time. I’ve learned about a few frameworks and I’m getting the hang of some of the syntax, but the more key items are still foggy to me.

The sheer number of classes, and all their sub and subsequent super classes vex me. They’re so darn many, it’s literally like learning a whole new set of words and the proper grammar along with it. I’ve not run across any resources so far that take the time initially to educate a person about how to efficiently learn them. Perhaps they assume that Apple’s documentation is the right way to do it and there’s just too many to begin with, so it’s a “type it and you’ll figure it out” approach. It doesn’t seem elegant, though.

Want to know when stuff like this is published?
Sign up for my email list.

Photo of Justin Harter


Justin has been around the Internet long enough to remember when people started saying “content is king”.

He has worked for some of Indiana’s largest companies, state government, taught college-level courses, and about 1.1M people see his work every year.

You’ll probably see him around Indianapolis on a bicycle.

1 thought on “iOS – MapKit and Text Input”

  1. It’s interesting that you got to this point in the book and the started thinking about other available resources, I hated this chapter for various reasons, the first being that I just couldn’t get the zoom to work propperly, I had to google around and find a little hack to fix that. Also, I couldn’t get the annotations working on the map, just wouldnt work for me.

    Also I had a few problems with some of the concepts in this chapter, mostly the line that reads :-

    id mp = [annotationView annotation];

    While I understand that this just returns the annotation details and stores them in mp which is of generic type (apparently good if we wanted to have more types of annotation or object) – I just don’t understand WHY we need this? why does mp have to point to an object that conforms to the MKAnnotation protocol?

    I have found the last half of this chapter really difficult, I don’t know if it’s just me, but I am skipping over it for now and moving onto the next chapter, will come back to it at a later date.


Leave a Comment