Creating a Twitter application

In this recipe, we will learn how to create a single view application to build our Twitter application.

Getting ready

In this recipe, we will start by creating our TwitterExample project.

How to do it...

To begin with creating a new Xcode project, perform the following simple steps:

  1. Launch Xcode from the /Developer/Applications folder.
  2. Select Create a new Xcode project, or click on File | New | Project….
  3. Select Single View Application from the list of available templates.
  4. Click on the Next button to proceed to the next step in the wizard.
  5. Next, enter in TwitterExample as the name of your project.
  6. Select iPhone from under the Devices drop-down menu.
  7. Ensure that the Use Storyboards checkbox has been checked.
  8. Ensure that the Use Automatic Reference Counting checkbox has been checked.
  9. Ensure that the Include Unit Tests checkbox has not been checked.
  10. Click on the Next button to proceed to the next step in the wizard.
  11. Specify the location where you would like to save your project.
  12. Then, click on the Create button to save your project at the specified location.

    Note

    The Company Identifier for your app needs to be unique. Apple recommends that you use the reverse domain style (for example, com.domainName.appName).

Once your project has been created, you will be presented with the Xcode development environment, along with the project files that the template created for you.

How it works...

In this recipe, we just created an application that contains a storyboard and consists of one view controller, which does not provide any functionality at the moment. In the following recipes, we will look at how we can add functionality to view controllers, create storyboard scenes, and transition between them.

See also

  • The Creating storyboard scenes recipe
  • The Configuring storyboard scenes recipe
  • The Applying transitions to storyboards recipe
  • The Preparing transition to another view controller recipe
  • The Presenting storyboard view controllers programmatically recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset