Move Layers/Views to Path in iOS

move to path xcode ios sugartin 2

In this post, I am going to give you quick guide, How to achieve the animations illustrated in above video. 1. Import the QuartzCore.framework into your project. 2. Open XIB & design accordingly your need. Here is an example of … Continue reading

Adding Events to default Calendar of iPhone/iPad/iPod

sugartin iphone ios calendar entry add EKEventKit

In this Post, I will quickly illustrate about ‘Adding Events to default Calendar App of the iOS Device’. Please follow the steps as listed below. 1. Add the EventKit.framework into your project. 2. Jump to your class-implementation.m file & import … Continue reading

Reversing an array – a quick trick

sugartin info array reverse quick simple

Just go through following code. It gives an example to reverse an entire array with one line logic. Don’t go for complex code. I have seen many developers writing very complex code for reversing an NSArray/NSMutableArray. But this snip would … Continue reading

Add Encryption to your NSData


1. Import files linked here into your project. 2. Import header file into your implementation to have access to encryption methods. 3. Please find the following example to understand the Encryption Technique.

4. Please find the following example to … Continue reading

Accessing Application Version into your application

sugartin accessing app version

  As illustrated in image above, Assume that you have to access & display the Application version name. Or While making a web-service call, you have to pass the version of the application, so that server can know, which version … Continue reading

Using TouchXML for XML having Custom XMLNS

sugartin xml parsing touchxml xmlns custom

Yes ! TouchXML would not be able to trigger XPath queries when XMLs have custom name-spaces. ( XMLNS – xml name-spaces ) Here is the sample XML which has custom name-space.

So, For parsing such data if you try … Continue reading

Adding a contact to AddressBook using your application.

contact book add contact

Hi ! Using this post, I will illustrate adding a contact details to AddressBook from an application. Step 1. Open your project. Step 2. Import AddressBook.framework Step 3. Put & bind appropriate actions. Step 4. Put following code within your … Continue reading

iOS Print functionality – to print using AirPrinter

AirPrint - iOS iPad iPhone - 3

Now, It’s possible to print a document/image from the iOS Device having iOS 5. To implement print functionality¬† UIPrintInteractionControllerDelegate is used. Here are the screen-shots of the sample code given at the end of this post. iPhone screen – before … Continue reading