Code: Custom pins in your map

Sometimes you need to add a custom pin to your map. You can use this piece of code to achieve that. Take a special look to the property "centerOffset" that allows to adjust your image from the center of your MKAnnotationView (usually you will set it as (0 , minus half...

Theory: Delegate patterns in Cocoa

The delegate pattern is a common and useful pattern in cocoa's environment like  properties and will be easy to implement if you have clear what you want to do. The first thing we need to know will be the concept of 'protocol', this is basically a declaration which methods are between two classes and...