Detecting iPhone 5

iphone 5 sugartin xcode detect

Attempt to check if the current device is an iPhone 5 at runtime. The most advanced version of this I’ve found is from this answer on StackOverflow. The following is a slightly modified version of the macros created in the StackOverflow … Continue reading

Detect Device Version – iPhone 2G, 3G, 3Gs, 4, 4s, iPad 1, iPad2, iPad3

sugartin iphones detect device by coding

Sometimes, Your application might need to check which device is being used by the user. For example – My App needs to track that – iPhone3G users are 120, iPhone3Gs users are 340 & iPad2 users are 100. So, I … Continue reading

UITextField numeric entries only

Numeric Keypad only

I am going to provide here snip for limiting a textfield to numbers only. Following code-snip will help you to enter 14 digit number like a phone number including brackets (), dash – , space and backspace.

Adding overlays on MKMapView using MKPolygon, MKPolygonView, MKOverlayView & MKAnnotationView

Adding overlays on MKMapView

Hey ! Hi All ! Let’s just have a quick look to the output of what I am going to illustrate using this post. So, This is how it looks like. If you are looking for similar kind of solution, … Continue reading

Adding overlays on MKMapView using MKPolygon, MKPolygonView, MKOverlayView & MKAnnotationView

Adding overlays on MKMapView

Hey ! Hi All ! Let’s just have a quick look to the output of what I am going to illustrate using this post. So, This is how it looks like. If you are looking for similar kind of solution, … Continue reading

Simple RSS reader and parse them display into UITableview

With this I’m assuming you have a bit of familiarity with the iPhone SDK.We’re going to build an RSS feed reader for a simple feed.Let’s get started step 1: Open Xcode and choose the “File” menu, in which you’ll click … Continue reading

Straight GeoCoding – Obtain Address using Latitude & longitude using Google API

Reverse GeoCoading Location from address

You might have gone through this post. This post describes “How to obtain Latitude-longitude values using the address?” This method is known as Reverse Geo-Coding. Now, In this post, I am going to describe “How to fetch address using latitude & longitude … Continue reading

Straight GeoCoding – Obtain Address using Latitude & longitude using Google API

Reverse GeoCoading Location from address

You might have gone through this post. This post describes “How to obtain Latitude-longitude values using the address?” This method is known as Reverse Geo-Coding. Now, In this post, I am going to describe “How to fetch address using latitude & longitude … Continue reading