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

SQL Anywhere 12.0.0 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » 教程:使用 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 库设置项目。
 设置 UltraLite 预处理器宏
 将项目编译为 C++
 将 UltraLite 库添加到项目
 添加 UltraLite 所需的框架