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.

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

Installing an Ad Hoc Distribution

sugartin iphone ipad distribution build ipa ad hoc

Few days before, I was instructed to send .ipa file to client using mail. For me, That was not a new thing. I just created .ipa file & sent to the client. But later, I have to give support to … Continue reading

Console only on Debug mode & not in release mode

Console during development mode

It is strongly recommended to console each thing during the development time of the application. But during the development time, developers also have to send the build to the end client. Its an obvious thing that, no one would wish … Continue reading

Console only on Debug mode & not in release mode

Console during development mode

It is strongly recommended to console each thing during the development time of the application. But during the development time, developers also have to send the build to the end client. Its an obvious thing that, no one would wish … Continue reading

Working with UIWebView – loading contents in different ways

UIWebView using URL

This post is going to illustrate different ways of loading contents in UIWebView. Illustration also includes the steps of creating project as well. For existing projects, skip first 3 steps. Step 1) Create the new project and select the single … Continue reading

Language selection within application

Using this post, I  am going to describe the trick that I implemented in one of the applications developed by me. This trick enables Arabic Language support & English language support. In short, This trick will help you to enable … Continue reading