User Location and your own annotations in a MKMapView

I’ve spend a while working this one out. For a long time I’ve had a MKMapView to display pins dropped in specific places on a map. I’ve done this through the delegate method -(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id) annotation { MKPinAnnotationView *annotation = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil]; // Some customisation goes here [annotation autorelease]; return annotation;…

Read More

Custom Logging in Obj-C

If you’ve used Objective-C for Mac or iOS development you’re probably familiar with NSLog(); to log to the console. Well that is fantastic for development, but you don’t really want to output your debugging logs on distributed iOS apps do you? It would be a real pain to remove every instance of NSLog from your…

Read More

The iPhone App Piracy Problem

The iOS (that’s the iPhone, iPad and iPod Touch) AppStore has a problem. A piracy problem. If you have a jailbroken iPhone, that is one where you have run a bit of software to allow you to download apps outside of the AppStore then you may have come across pirated apps, you may not have…

Read More

How to harness the Retina Display in your app

It is remarkably easy to do so and I implore all all iPhone developers to please upgrade all their apps to support the Retina Display on the iPhone 4, otherwise your app just looks blurry. What Apple achieved with the Retina Display is a remarkable feat. The screen is still exactly the same size of…

Read More

Creating a mini map using MapKit on the iPhone

So as promised here is the final part of my MapKit tips and tricks using the iPhone SDK. Sorry it’s a little later than I intended as I wanted my version of the feature live in the AppStore before I published the article. So we’ve seen before how to create a simple map, well now…

Read More

How to add a pin to embedded map

Part one of this section on MapKits showed how to embed a map and place a floating toolbar for switching the map views, however it didn’t cover how to drop the pin where you wanted it. Create the Object First lets create a new NSObject for the place mark. Let’s call it ‘PlaceMark’ PlaceMark.h #import…

Read More

How to embed a map on the iPhone

In the first of a few posts I intend to make I’ll demonstrate some examples using the iPhone SDK. This example will demonstrate how to embed a map, using the MKMapKit framework inside a UIView using the iPhone SDK. Note you must be using iPhone OS 3.0 or higher for this to work. The ultimate…

Read More

The iTunes App Store review process

Being a small fry iPhone app developer, that being I do so in my own spare time because I like developing apps for the iPhone, I’ve simply got to comment about the App Store review process as it stands. I won’t make any individual comments about my personal rejections I’ve had except to say. I…

Read More