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

SQL Anywhere 12.0.1 » UltraLite - C 及 C++ 编程 » 教程 » 教程:使用 C++ API 构建 iPhone 应用程序

 

第 1 课:创建新的 iPhone 应用程序项目

在开始任何工作之前,首先必须创建 Xcode 项目。

 ♦ 创建 Xcode 项目
  1. 启动 Xcode。

  2. 在 [File] 菜单下单击 [New Project]。

  3. 从左侧选项单击 [iPhone OS Application]。

  4. 单击 [Navigation-based Application],以使 [Use Core Data for Storage] 选项保持清除状态。

  5. 单击 [Choose] 按钮,将 [names] 项目保存在所选的位置。

基于导航的项目自动创建 UINavigationController 内带有 UITableViewController,并且带有 UIApplicationDelegate(在应用程序启动时将控制器放入窗口)的应用程序。到目前为止,应用程序仅有空的导航栏(在顶部),以及空的表视图。为了给表格填入名称,应用程序将从设备上的 UltraLite 数据库请求数据。

 为 UltraLite 库设置项目
 将项目编译为 C++
 将 UltraLite 库添加到项目
 添加 UltraLite 所需的框架