XCode, Assets & Simulators – analysis with display & assets

Assets analysis - Article Thumb

Lets create 3 images named as follows. my_image.png my_image@2x.png my_image@3x.png Dimension of above mentioned images are as follows. my_image.png = 100 pixels width x 100 pixels height my_image@2x.png = 200 pixels width x 200 pixels height my_image@3x.png = 300 pixels … 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

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

Installing debugging support for iOS 4.3/4.2/3.2/3.0 in XCode4.2 & XCode4.3.2

ios 4.3 4.2 3.0 3.2 simulator support 01

Step 1. Open XCode & Click on XCode Menu. Step 2. Click on Preference option. Step 3. Now, Switch to Downloads. Step 4. Switch to Components Tab. Step 5. Click on Install button for different versions support as per your … Continue reading

Displaying iOS Device Battery level indication within your application.

sugartin battery iOS Device

Very simple illustration for implementing this. 1. Open your view controller. 2. Enable Battery monitoring. 3. Put a scheduler to update battery details. Here is the code for it.

Here is the scheduler method.

Grab the source code … Continue reading

Strange error by iOS Simulator – bootStrap server – couldn’t register …

iOS iPhone iPad Simulator Hang Another instance error

Sometimes, when you try to run your project in iOS Simulator, you might get following strange error.   Couldn’t register com.sugartin.info with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already … Continue reading

Strange error by iOS Simulator – bootStrap server – couldn't register …

iOS iPhone iPad Simulator Hang Another instance error

Sometimes, when you try to run your project in iOS Simulator, you might get following strange error.   Couldn’t register com.sugartin.info with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already … Continue reading

Registering an application for push notification

Push Notification Post Thumb

This post will describe about “Registering the application for push notification”. You may also consider it as “enabling push notification in an iPhone/iPad application.” 1) Open your application project. 2) Select & Open “YourApplicationDelegate.m” ( Application delegate implementation file ) … Continue reading