Chuyển đến nội dung chính

[iOS] File Sharing support via iTunes

File-Sharing Support

File-sharing support lets apps make user data files available in iTunes 9.1 and later. An app that declares its support for file sharing makes the contents of its /Documents directory available to the user. The user can then move files in and out of this directory as needed from iTunes. This feature does not allow your app to share files with other apps on the same device; that behavior requires the pasteboard or a document interaction controller object.
To enable file sharing for your app, do the following:
  1. Add the UIFileSharingEnabled key to your app’s Info.plist file, and set the value of the key to YES.
  2. Put whatever files you want to share in your app’s Documents directory.
  3. When the device is plugged into the user’s computer, iTunes displays a File Sharing section in the Apps tab of the selected device.
  4. The user can add files to this directory or move files to the desktop.
Apps that support file sharing should be able to recognize when files have been added to the Documents directory and respond appropriately. For example, your app might make the contents of any new files available from its interface. You should never present the user with the list of files in this directory and ask them to decide what to do with those files.
For additional information about the UIFileSharingEnabled key, see Information Property List Key Reference.

Nhận xét

Bài đăng phổ biến từ blog này

Windows 10 enable long file/folder path

Windows 10 enable long file/folder path Registry Import Enabling Long Paths Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem] "LongPathsEnabled"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] "LongPathsEnabled"=dword:00000001 Enable via group policy editor Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> FileSystem -> Double click Enable Win32 long paths and select Enabled

Xcode 8 support devices ios 7

Tải XCode 5.1.1 về, copy 2 folder 7.0 & 7.1 trong thư mục /Volumes/Xcode/ Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport sang thư mục DeviceSupport của phiên bản XCode 8 (hiện tại) Mở file SDKSetting.plist trong thư mục /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk Thêm giá trị 7.0 & 7.1 vào key Root->DefaultProperties->DEPLOYMENT_TARGET_SUGGESTED_VALUE Thoát XCode & khởi động lại XCode

Tạo đĩa cứu hộ DLCD chuẩn UEFI

Chạy CMD dưới quyền quản trị (admin), nếu như bạn đang sử dụng Windows 8 trở lên thì nhấn tổ hợp phím “Windows + X” và chọn “Command Prompt (Admin)” Cửa sổ “Command Prompt” hiện ra bạn gõ lệnh  DISKPART  > gõ tiếp lệnh  LIST DISK  để nó liệt kê ra toàn bộ ổ cứng của bạn. Tạo usb chuẩn UEFI chứa bộ cài Windows Ví dụ như trong hình thì Disk 1 là USB và Disk 0 sẽ là ổ cứng, bạn nhìn vào dung lượng (Size) để biết được chính xác đâu là Disk của usb nhé. + Sau khi bạn đã biết được chính xác đâu là DISK của USB thì gõ tiếp lệnh  SELECT DISK   x  (x là số DISK của USB). Ví dụ như trong hình trên, mình sẽ gõ chính xác dòng lệnh như sau:  SELECT DISK 1 Các bạn làm theo chính xác các lệnh sau: CLEAN – Lệnh này sẽ xóa sạch dữ liệu trên ổ bạn đã chọn (ơ đây là USB). CON GPT – Lệnh này sẽ chuyển sang định dạng GPT. CREATE PARTITION PRIMARY – Lệnh này sẽ tạo Partion cho toàn bộ ổ đĩa mà bạn đã lựa chọn. FORMAT QUICK...