Get IP Address or MAC Address of iOS Device or iOS Simulator

Put this method into your class & you can obtain the IP address of current device. To obtain MAC address, put following code.

iOS7 / iOS 6 / iOS 5 – Get Device Unique Identifier UDID

Following code will help you to get the unique-device-identifier known as UDID. No matter what iOS user is using, you can get the UDID of the current iOS device by following code.

Decode HTML String to normal text

In this post, I’ll provide you a quick snippet for trimming/decoding HTML text from NSString. So, the code snippet given here will just remove the HTML tags supplied within the NSString object. Assume you have following string.

Code snippet … Continue reading

Add Event in Native Calendar in IOS

Convert Unix time stamp to NSDate

Hello every one today i will give the demonstration on how to add event in to native calendar. For that using the Event Kit framework in OS 4.0. include framework into project Right click on the FrameWorks group in the … Continue reading

Sending a SOAP Request using ASIHTTP & Parsing using TouchXML

sugartin xml parsing touchxml xmlns custom

Hi All ! For sending requests to SOAP web-services, one can use different techniques as follows. Using NSURLConnection & NSXMLParser Using NSURLConnection & TouchXML Parser Using NSURLConnection & LibXml2 Parser Using ASIHTTPRequest & NSXML Parser/TouchXML Parser/LibXml2 Parser. Using this post, … Continue reading

Zoom in and Zoom out Pinch Gesture Recognizer

pinch Gesture_Pinch.ogg

Hi All ! I will show you how to  Pinch zoom In / Zoom Out over UIImageView,UIViewController ..etc with use of the UIPinchGestureRecognizer.User can zoom in/out view and set the UIImage and any controller over their. Following Code for the … Continue reading

Set Dynamically Height of the UITableViewCell


In this post I will show you how to set your table view cell heights dynamically based upon the text content without subclassing UITableViewCell. You can subclass it, however, doing so does not make the code much cleaner as setting … Continue reading

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