Category Archives for iOS

A 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 number matches a random number generated by the app. Let’s see how it works! Start Xcode, choose “Create […]

Read More...

Getting 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 provide. Today, I’ll show you a simple way to get the exact duration of a touch on the screen. So let’s get […]

Read More...

Sorting 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, we can also sort the objects using either a predefined selector or one that we provide ourselves. In this blog, we’ll sort […]

Read More...

Address 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 = ABAddressBookCreateWithOptions(NULL, &error); if (addressBook != nil) { NSLog(@”Succesful.”); NSArray *allContacts = (__bridge_transfer NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBook); NSUInteger i = 0; for (i = 0; i < [allContacts count]; i++) { Person *person = [[Person […]

Read More...

Address 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 an iOS device, the contacts application allows users to manage their contacts. The AddressBook Framework in the SDK allows us to get access to the […]

Read More...

Tutorial on Image Picker Controller in iPhone

In iOS, most of the applications need the feature of capturing the picture either from camera or from the existing photo library. Further, apps require to upload or save it in application bundle for future use. In this tutorial I will explain one of the most useful feature of iOS called UIImagePickerController and its delegate […]

Read More...

Tab Bar Controller Tutorial For iPhone

In iOS, UITabBarController works as an access point for different view controllers and its views. The tab bar contains set of tabs corresponding to the view controllers that we need to populate. Each tab of a tab bar controller is associated with a custom view controller. When the user selects a specific tab, the tab […]

Read More...

Custom Calendar 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 version of the calendar, we don’t have any library or framework provided by iOS. In these situations we use third party […]

Read More...

Using 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 reason, Xcode also offers an Empty application template. In this blog, we’ll see how to use the Empty template to build […]

Read More...

Custom 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 map seen in the maps application. Using GoogleMaps as its engine the map kit allows for a developer to make […]

Read More...