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...
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 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 ArticleShowing an Alert in iPhone
Many times, we want to give a visual indication to the user that something has happened. We might tell the user that a file was saved, information has loaded, or some condition has been met that they...
View ArticleTwo Splash Screen display in iphone
In this application we will see how to applied two splash screen in the iPhone. So let see how it will work. Step 1: Open the Xcode, Create a new project using Window Base application. Give the...
View ArticleUsing Toolbars in iPhone
The UINavigationController maintains a UIToolBar for each view controller in its stack. This toolbar is normally hidden, but we can place buttons on it and display it any time we want. Let’s see how...
View ArticleButtonHide Example in iPhone
In this application we will see how to hide button from the iPhone application. So let see how it will worked. Step 1: Open the Xcode, Create a new project using Single View Application. Give the...
View ArticleTokenizing an NSString in iPhone
Sometimes we want to split a string into its component parts; this process is called tokenizing. In this blog, we’ll write a very simple expression evaluator which takes a string entered by the user...
View ArticleProgrammatically Segmented Control in iPhone
In this application we will see how to implement Segmented Control programmatically in iPhone. So let see how it will worked. Step 1: Open the Xcode, Create a new project using View Base application....
View ArticleA Utility App for iPhone
On the iPhone, the Utility Application template creates an app with a two view controllers. The second view controller’s view is displayed when the user touches a small Info Button in the lower right...
View ArticleUnderstanding button press events
This is the “ButtonPress” example. I am going to show you the simplest way to press the button and change the event of button pressed. Step 1: Open the Xcode and create a new Xcode project using View...
View ArticleA Tabbed Application from Scratch for iPhone
Even though Xcode provides a template for building a tabbed application, we often want to start from scratch when building a tabbed app. So let’s see how it’s done. Start Xcode, select “Create a new...
View ArticleModal Storyboard Segues for iPhone
The introduction of storyboards in iOS 5 has allowed for the rapid development of application prototypes. In this blog, we’ll look at setting up a segue between two view controllers such that when an...
View ArticleDelegation between View Controllers using Storyboards (for iPhone)
Delegation between UIViewControllers is a common pattern. We might have a class graph in which there is a master view controller (that communicates with the model and all the other view controllers)....
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 ArticleAlert View Application in iPhone
In this application we will see how to AlertView display after button pressed in iPhone. So let see how it will worked. Step 1: Open the Xcode, Create a new project using View Base application. Give...
View ArticleTime Application in iPhone
In this application we will see how to Current time display in the application. So let see how it will worked. Step 1: Open the Xcode, Create a new project using View Base application. Give the...
View ArticleImage Download Application in iPhone
Most of the iPhone applications require the images to be downloaded from the web server. Depending upon the web service (API) provided, there are some methods to download the image. In this tutorial we...
View ArticleTutorial 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...
View ArticleTab 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...
View Article