Table view with insert and delete rows in iPhone
A very common feature for almost all iOS applications is UITableView and its data source and delegate protocol. In this tutorial I will explain how to edit table view rows with little animations. i.e I...
View ArticleMultiple row selection in iPhone table view
In this tutorial I will explain the most powerful feature of UITableView, called multiple selection of rows. Create a new project in Xcode using single window application template and name it as...
View ArticleOrientation Changes for iPhone
There are two ways to change the orientation of controls when the device orientation changes. The simplest way is to use the controls found in the Size Inspector (shown here) to set behavior for...
View ArticleToolbar animation along with the keyboard
There are some situations in iOS applications like animating bottom tool bar with the keyboard. That is, we need to animate the tool bar on top of keyboard when showing and hiding the keyboard. This...
View ArticleLoading HTML data using UIWebView in iPhone Development
Suppose if we want to populate the large amount of static data in iOS application then we generally use text view object to represent that data. Text view object is feasible for some situations. But if...
View ArticleNotifications in iPhone Programming
In this tutorial I will explain how local notifications can be performed in iOS application. Here there’s three important steps: 1. Create a new observer to listen for the notification (event) to...
View ArticleMap view with annotations and its views
In this tutorial I will be looking into the MapKit, a new API’s made available by Apple in the iOS 3.0 and later versions. The MapKit allows simple access to the map seen in the maps application. Using...
View ArticleRe-ordering table view cells in iOS application
There are some situations in iOS applications where we want to drag a particular row or cell of a UITableView to other occupied row or cell. Which means we need to drag and drop a cell at a particular...
View ArticleNSAttributedString and TTTAttributedLabel tutorial in iPhone
In most of the iOS applications we will encounter the situation of having a single UILabel with different colors, different font style and sizes. Before iOS 6, there are no official properties or...
View ArticleMap View Zooming in iPhone Development
We have already discussed the Map kit framework concepts like Map annotations and drawing path between two destinations in our earlier tutorials. In this tutorial I will be looking into zooming part of...
View ArticleCollection view in iPhone
UICollectionView is one of the powerful feature that apple adopted for iOS SDK to customize the view in grid manner. Prior to iOS 6, to achieving this we have to use third party framework stuff like...
View ArticleCustom Path Between Two Locations in iPhone Map View
In this tutorial I will explain custom drawing of path between two locations in iOS map view. This is possible by using annotations, core graphics and map kit. The MapKit allows simple access to the...
View ArticleUsing the Empty Template in iPad
Xcode offers many templates from which to choose when creating a new application. Sometimes, though, we want a bit more control over the details of an app than these templates can provide; for this...
View ArticleCustom Calender View in iPhone
In general, in iPhone applications whenever we want to select the date from calendar, we populate the UIDatePicker to show the dates. This is a native iOS feature. But if you want the customized...
View ArticleAddress Book tutorial for iPhone – Part 1
The Address Book technology for iOS provides a way to store people’s contact information and other personal information in a centralized database, and to share this information between applications. On...
View ArticleAddress Book tutorial for iPhone – Part 2
We create a new method getPersonOutOfAddressBook where our most important actions take place. - (void)getPersonOutOfAddressBook { CFErrorRef error = NULL; ABAddressBookRef addressBook =...
View ArticleSorting an array of strings in iPhone
The NSArray class is often used as a container for NSString objects, making it one of the most useful classes in the entire Foundation framework. In addition to providing indexed storage for objects,...
View ArticleGetting the duration of a touch on iPhone
Since iOS version 5, gesture recognizers have been added to the list of controls in the Interface Builder library. But sometimes we want more information about a touch than these handlers can easily...
View ArticleA Picker Lottery for iPhone
In this blog, we’ll see how to use a UIPicker control to implement a simple lottery application. The user will choose a two digit number using a picker control, then press a button to see if their...
View ArticleReversing a String in iPhone
Sometimes we want to perform some task on an object that is not included in the methods of that class. An example of this might be reversing the order of characters in an NSString object. While we...
View Article