Common Date operations in Objective-C

In this post, I’m going to provide you code snips for common date operations like yesterday, last month, last week etc. Just keep scrolling through code snips & I hope you would get what you need. 1. LastWeek: Get date … Continue reading

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.

Apply color to black-masked-image

In this post, I’ll illustrate how to apply color to specified black-masked-image. Please go through the code to understand implementation.

Create an image using color and size supplied in arguments

In this post, I’ll illustrate how to create an image with the help of color specified and size specified. Sometimes, during development, you might need to create an image with specific color. As an example, if you wish to have … 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.

UITabBarController More & Configure Customization

UITabBarController More & Configure Customization - 03

Using this post, I am going to illustrate the customization of “More & Configure” screens navigation items. If you want to modify the color of “More” screen’s navigation item color, just place following line of code. By viewing following screen-shot … Continue reading

UITabBarController More & Configure Customization

UITabBarController More & Configure Customization - 03

Using this post, I am going to illustrate the customization of “More & Configure” screens navigation items. If you want to modify the color of “More” screen’s navigation item color, just place following line of code. By viewing following screen-shot … Continue reading