iOS 7 – Status bar Issue – Fixed in my style

Hi All ! I know every-one is struggling with new iOS7. One of the major issue for making app-user-interfaces compatible to iOS7 for apps which uses custom-layouts, I’ve found a quick solutions & I hope you are going to like … 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

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