Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » UltraLite - C and C++ Programming » API reference » Tutorial: Build an iPhone application using the C++ API

 

Lesson 1: Creating a new iPhone application project

Before you can start doing anything, you must first create an Xcode project.

 ♦  To create an xCode project
  1. Launch Xcode.

  2. Under the File menu, choose New Project...

  3. Choose iPhone OS Application from the left-hand side selection.

  4. Choose a Navigation-based Application, leaving the Use Core Data for Storage. option unchecked.

  5. Click the Choose... button and save the project names in the location of your choice.

The Navigation-based project automatically creates an application with a UITableViewController inside of a UINavigationController, as well as a UIApplicationDelegate which places the controllers in the window when the application is launched. So far, the application only has an empty navigation bar at the top, and an empty table view. To fill the table with names, the application will request the data from an UltraLite database on the device.

 Setting up the project for an UltraLite library.
 Setting up the UltraLite preprocessor macro
 Compiling the project as C++
 Adding the UltraLite library to the project
 Adding frameworks required by UltraLite