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

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

Disable auto launch of iTunes / iPhoto / ImageCapture on connecting iDevice to Mac

Most of the times, when I connect my iPhone or iPad or iPod to my Mac, I am facing a problem that iPhoto & iTunes start jumping & hangs my system for few seconds. That really irritates me. Just because, … Continue reading

Locally Store/Retrive the data into NSUserDefaults

4b27347123d470cf1a5dcfb4f60b51c6

NSUserDefaults class, you can save settings and properties related to application or user data.I will be showing you how you can save and retrieve different types of data using the NSUserDefaults object. I will be showing you how you can save and retrieve … Continue reading

Accessing windows shared folder from Mac

connect to windows shared folder 03

Do your college or friend asking you to access shared folder from windows machine & you have no idea for that ? Follow simple steps listed here. Step 1. Open one finder window or just switch to the finder. Step … Continue reading

Creating iPA file using XCode 4.2 & 4.3.2

In this post, I am going to describe ‘How to create iPA file using XCode?’ iPA file means iPhone Application. iPA files are generally used for Ad-Hoc distribution. Step 1. Open your code Project. Step 02. From Xcode, Go to … Continue reading