0%

Book Description

Rise above the basics of Xcode app development to implement tools like Share buttons and activity view controllers to share document content including parts of documents with other users and with other devices. This book fills the gap so that developers with even a fundamental knowledge of iOS and Swift can implement document creation, saving, and sharing in their apps.

Since the launch of iPhone in 2007, users and developers have struggled with the fact that the file system is hidden. Fortunately the Files app in iOS 11 now offers this feature and it is supported by Apple apps such as Numbers, Pages, and Keynote as well as by the few third-party apps that support documents. 

By using the standard formats described in this book, you can make your app’s data shareable to and from other apps like Numbers, Pages, and Word. Files also provides an interface to tools such as Dropbox and iCloud so that users can open and modify documents in them. If you combine standard formats such as .doc, .docx, .jpeg, and .jpg with Dropbox and eMail, you have a simple way to implement and use cross-platform sharing to Macs, PCs, and Android devices.

Implementing iOS and macOS Documents with the Files App provides the combination of skills developers need to build these types of apps—working with files and constructing documents.

What You'll Learn

  • Add Document Support to Your Apps  
  • Share your documents with iCloud and Apple IDs across your Mac and iOS devices 
  • Use standard formats from .doc, .docx, .png, and .jpeg both for input and output
  • Manage and organize documents
Who This Book Is For

Developers with a basic knowledge of app development and Swift. You should already know how to use Xcode to create an app. Knowledge of basic Swift syntax is recommended. The book can also be a useful overview and guide to managers who are trying to decide how to convert legacy document-based systems to apps.

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Using Documents
  4. 2. Looking Inside a Document
  5. 3. Matching a Document to a Document Format
  6. 4. Securing and Protecting Data
  7. 5. Implementing Documents on macOS: NSDocument
  8. 6. Implementing Documents on iOS
  9. 7. Implementing Documents on iOS: UIDocument and UIDocumentBrowser ViewController
  10. 8. Sharing Documents with Share Buttons
  11. 9. Using User Defaults, Settings, and Preferences
  12. 10. Working with File Wrappers and Packages
  13. 11. Using File Archives
  14. Back Matter
18.212.87.137