上傳iOS App的Documents檔案夾

  • warning: Declaration of views_handler_argument::init(&$view, &$options) should be compatible with views_handler::init(&$view, $options) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_argument.inc on line 745.
  • warning: Declaration of views_handler_filter::options_validate(&$form, &$form_state) should be compatible with views_handler::options_validate($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • warning: Declaration of views_handler_filter::options_submit(&$form, &$form_state) should be compatible with views_handler::options_submit($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • warning: Declaration of views_handler_filter_boolean_operator::value_validate(&$form, &$form_state) should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 149.
  • warning: Declaration of views_plugin_style_default::options(&$options) should be compatible with views_object::options() in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_style_default.inc on line 25.
  • warning: Declaration of views_plugin_row::options_validate($form, &$form_state) should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • warning: Declaration of views_plugin_row::options_submit($form, &$form_state) should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.

上傳iOS App的Documents檔案夾:2011年02月21日星期一

每個iOS App都有個Documents檔案夾,從iPad及iOS4開始,有了File Sharing功能,讓使用者可以"同步"Documents檔案夾。步驟相當多,詳見Ray Wenderlich網站的 How To Integrate iTunes File Sharing With Your iOS App一文。

本文節錄片段,只以"上傳iOS App的Documents檔案夾"一事說明,步驟如下。

程式設計師在寫App時,先在info.plist檔內設定勾選:

Application supports iTunes file sharing (Ray的文章是UIFileSharingEnabled)

在App已上傳至iPhone後,使用者:

  1. 打開iTunes
  2. 點裝置下你的iPhone
  3. 點上方"應用程式"後,右方出現許多Apps 的icon
  4. 將螢幕scroll至最底
  5. 看到檔案共享
  6. 點左邊"應用程式"下方某App的icon
  7. 右方即出現Documents檔案夾內所有檔案、檔案夾資料
  8. 點選想要儲存的檔案、檔案夾,再點右下方"儲存至。。。"即可選個MAC或PC上的地方儲存。

注意事項:

  1. iPhone必需使用iOS4.0以上 。
  2. 不需JB
  3. 必需使用iTunes