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

Why the iPad 2 will have a 2058×1536 resolution

Let me take you back to the old iPhone 2G, 3G and 3Gs. This device had a screen resolution of 320 pixels wide by 480 pixels high. Developers were explicitly told to code for that resolution and did so with great success. This immediately raised a concern for me, what would happen in the future,…

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

Apple’s iPad UK pricing

I’ve read a lot of comments online since Apple announced it’s international iPad pricing, and most of those comments revolve around ‘Rip-Off Britain’. Now it is true that must tech imported from the USA seems to cost more with this mythical international tax and at first glance the iPad pricing in the UK is a…

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