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 […]



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 […]



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 […]



Re-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 cell index. UITableView is powerful enough to handle this feature with smart animations by using its […]



Notifications 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 happen. 2. Post the notification when our event happens. 3. Remove the observer when we no longer need it. From apple documentation, NSNotification […]



Handling subviews of the main view in UIViewController: Part 2 (iPhone)

In part 1 of this blog, we created an app that has a single view controller that dynamically creates two subviews with a single button each. We used delegation through a protocol to respond to the button touches, but the view controller isn’t responding to the delegate methods. The source code for part 1 is […]



SegmentControl Application in iPhone

In this application we will see how to implement Segmented Controller in the application. So let let see how it will worked. My last post you can find out from here (Please attached the link of the previous post) Step 1: Open the Xcode, Create a new project using View Base application. Give the application […]



How to Toggle Switch in iPhone

This is the very simple example. In this example we will see how we can change the background color after toggling switch in the application. So let see how it will worked. My previous post you can find out from here (Please attached the link). Step 1: Create a View-base application using the template . […]



Text Field With Number in iPhone

In this example we will see how to enter limited number in the TextField. So let see how it will worked. Step 1: Open the Xcode, Create a new project using View Base application. Give the application “TextFieldWithNumber”. Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore […]



TabBar Application in iPhone Programming

This application will show the basic using of UITabBar and UITabBarItem.



A Vertical Slider for iPhone

The UISlider control offers a way to continuously get values from the user within a range of set values. In the Interface Builder library of controls, there is only a horizontal version of the slider, with no obvious way to change its orientation. In this blog, we’ll learn how to rotate the slider control to […]



Navigation Buttons in iPhone

The UINavigationController class allows an application to maintain a stack of UIViewControllers, each having their own view. Each UIViewController has a title property (an NSString) which represents the title to be displayed in the navigation bar of that view controller. But the navigation bar itself maintains an array of bar buttons that we can manipulate […]



StoryBoard Example in iPhone

In this application we will see how to StoryBoard works in iPhone iOS 5.0. So let see how it will worked. Step 1: Open the Xcode, Create a new project using Single View Application. Give the application “StoryBoardExample” and select the “Use Storyboard”. Step 2: Select the MainStoryboard.storyboard, first drag the ViewController from the library […]



Digital Signature Application in iPhone

In this application we will see how to DigitalSignature draw in iPhone. So let see how it will worked. Step 1: Open the Xcode, Create a new project using Empty Application . Give the application “DigitalSignature”. Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory […]



SliderExample Application in iPhone

In this application we will see how to Slider worked and change the value in iPhone. So let see how it will worked. Step 1: Open the Xcode, Create a new project using View Base application. Give the application “SliderExample”. Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You […]



Page 1 of 212
© 2010 - 2013 EDUmobile.ORG