![]() ![]() Remember that you must be running iOS 11 to follow along with this tutorial. Let’s first walk through the basic use of the Files app. Exposing Your App’s File to the Files App Download one of my iPad-based apps to see an example of my custom file “explorer” or “finder” here - it’s a free app. Note that before the Files app, developers like myself had to build custom Finder-like hierarchical file/directory user interface (UI) representations of the iOS file system, and provide corresponding functionality for navigation and manipulation of files and folders. IOS 11 changed all that with the introduction of the Files app. But Photos gives you no sense of how the image files are organized… In folders or subfolders? Which folders and where in your device’s file system? For years, the closest thing to an iOS file browser has been through apps like Photos, where you can see individual thumbnail images of photos hinting at the fact that their content is stored in individual files. In other words, they’re not used to seeing files organized as just files and directories and being able to navigate around in a file system. Most iOS app developers - and users - are not accustomed to seeing the files associated with their apps, at least not in a Finder-like or Explorer-like or even command line-like listing format. We’ll use my app, named “Document-Based App,” to view an image file in the app’s main folder: To pique your interest, let’s look at a feature I encoded in the final app for this tutorial. Sit back, enjoy, and learn about a fundamental paradigm shift in the iOS zeitgeist, moving from a “hide-the-details” (like hiding individual files) mindset to providing users with the ability to look at and manipulate files related to their apps using a macOS Finder-like interface, except on iOS. All of the Swift code I wrote to accomplish these two tasks is included below - and I’ve taken lots of screenshots regarding Files app integration. Second, I’ll demonstrate how you can incorporate Files app-like interface and functionality into your own apps. First, I’ll walk you through configuration of an app so that any files stored in its iOS file system-based “Documents” folder are made visible in the Files app and exposed to other apps installed on your device. In this tutorial, I’ll show you how to embrace iOS 11’s Files app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |