File Handling
People shouldn’t need to think about the file system while creating, viewing, and manipulating files. If your app works with files, downplay file handling as much as possible.
當(dāng)創(chuàng)建、瀏覽和操作文件時(shí)用戶(hù)不應(yīng)該需要考慮文件系統(tǒng)。如果你的app需要處理文件,盡量弱化文件處理過(guò)程。
Instill confidence that work is always preserved unless canceled or deleted.In general, don’t make people explicitly save files. Instead, save changes automatically at regular intervals, when opening and closing files, and when switching to another app. In some cases, such as while editing an existing file, save and cancel options may still make sense for the sake of confirming when the edits are actually captured.
持續(xù)灌輸信心,除非取消或刪除工作都會(huì)被保存。一般情況下,不要讓用戶(hù)顯式保存文件。取而代之,在定期的間隔、當(dāng)打開(kāi)和關(guān)閉文件時(shí)、當(dāng)轉(zhuǎn)換到其他app時(shí),自動(dòng)保存改變。在一些情況下,例如當(dāng)編輯一個(gè)存在的文件,當(dāng)編輯器被捕獲時(shí),為了確認(rèn)保存和取消選項(xiàng)也許仍然有用。
Don't provide an option to create local-only files.Users often expect all of their files to be available on all of their devices. Whenever possible, your app should support cloud-based file storage through a service such as iCloud.
不要提供一個(gè)選項(xiàng)來(lái)創(chuàng)建一個(gè)本地文件。用戶(hù)通常期望文件再他們所有設(shè)備都是可用的。盡可能讓你的app支持利用如iCloud等服務(wù)來(lái)創(chuàng)建基于云存儲(chǔ)的文件。
Implement an intuitive and graphical file browsing interface.Ideally, use the system’s familiar document picker for browsing. If you implement a custom file browser, make sure it’s intuitive and efficient. File browsers work best when they’re highly graphical, providing visual representations of files. To speed navigation, minimize gestures, and consider providing a new document button, so people don’t need to go elsewhere to create a new document.
實(shí)現(xiàn)一個(gè)直觀的、圖形化的文件瀏覽界面。理想情況下,用系統(tǒng)熟悉的文件選擇器來(lái)瀏覽。如果你實(shí)現(xiàn)一個(gè)定制的文件瀏覽器,確保它直觀而高效。當(dāng)文件瀏覽器高度圖形化、提供文件可視化的呈現(xiàn)時(shí)最好用。為了加速瀏覽,減少手勢(shì),考慮提供一個(gè)新的文件按鈕,所以用戶(hù)不必去一個(gè)其他地方就能創(chuàng)建一個(gè)新的文件。
Let users preview files without leaving your app.You can use Quick Look to let people view the contents of Keynote, Numbers, and Pages documents, PDFs, images, and certain other types of files, even if your app doesn’t actually open them. SeeQuick Look.
不用離開(kāi)你的應(yīng)用就能預(yù)覽文件。你可以用Quick Look讓用戶(hù)瀏覽Keynote, Numbers, and Pages documents, PDFs, images, and certain other types of files的內(nèi)容,即使你的app不是真的打開(kāi)他們。SeeQuick Look.
When appropriate, share files with other apps.If it makes sense, your app can share its files with other apps through adocument provider extension. Your app can also let people browse and open files from other apps. For developer guidance, seeDocument Picker Programming Guide.
合適時(shí),和其他app分享文件。如果有意義,你的app可以通過(guò)document provider extension 與其他app分享文件。你的app可以讓用戶(hù)從其他app瀏覽和打開(kāi)文件。For developer guidance, seeDocument Picker Programming Guide.