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

Zooming to specific Country/State/City in MKMapView

Adding overlays on MKMapView

Yes ! It is possible to zoom to specific country or state or city. MKMapView provides such zooming functionality. So, for zooming to specific location, one must know left-lower-co-ordinate of that location & right-top-co-ordinate of that location. For example, we … Continue reading

Mask and crop an image

feature_image

Masking an image enables a developer to create images with irregular shapes dynamically. Masking is often used to create a user interface that is more compelling and less boring. Take for example the following example …     Following code … Continue reading

UITableView in UIAlertView with SBTableAlert (iOS Open Source )

actionsheet1

Here’s a unique idea, create a control that embeds a UITableView within aUIAlertView – SBTableAlert does just that. The screenshot below shows the control with a multi-select table.   You can also use section headers within the table, as shown below: As described … Continue reading

Page curl effect – Vertical & Horizontal both for iPhone & iPad.

Page Curl

This post will describe adding a page curl effect to layer of View. First of all, Make sure you have already added “QuartzCore.framework” to your taget. Assume that imgV is a view where we need to apply curl effect. 1) … Continue reading

Page curl effect – Vertical & Horizontal both for iPhone & iPad.

Page Curl

This post will describe adding a page curl effect to layer of View. First of all, Make sure you have already added “QuartzCore.framework” to your taget. Assume that imgV is a view where we need to apply curl effect. 1) … Continue reading

Creating Image Grid using UITableView in iPhone

Picture 1

This post will guide “How to create a grid kind of Table View?” In this post following major points are covered. TableView Custom UITableViewCell Array of images. HJCache for asynchronous image loading. 1) Copy paste(import) HJCacheClasses library into project. 2) … Continue reading

MBProgressHUD

featuredImageHud

MBProgressHud is a really nice bit of plug in code to add fancy status and loading notifications to your iOS app quickly and easily. It looks great! Unfortunately, there’s an irritating error which cost me some time this morning, and … Continue reading