TAILIEUCHUNG - iOS App Programming Guide phần 7

Hợp nhất các dữ liệu thay đổi từ các tập tin xung đột, nếu nó là thực tế để làm như vậy. Bỏ qua một trong các phiên bản xung đột, nếu bạn có thể làm như vậy một cách an toàn hay mà không mất bất kỳ dữ liệu nào. Nhắc nhở người dùng lựa chọn phiên bản của tập tin (hiện tại hoặc xung đột) để giữ cho. | CHAPTER 4 iCloud Storage 3. For each file version object perform whatever actions are needed to resolve the conflict. For example Merge the changed data from the conflicting files if it is practical to do so. Ignore one of the conflicting versions if you can do so safely or without losing any data. Prompt the user to select which version of the file current or conflict to keep. This should always be the last option. 4. Update the current file as needed If the current file remains the winner you do not need to update the current file. If a conflict version is chosen as the winner use a coordinated write operation to overwrite the contents of the current file with the contents of the conflict version. If the user chooses to save the conflict version under a different name create the new file with the contents of the conflict version. 5. Set the resolved property of the conflict version objects to YES. Setting this property to YES causes the conflict version objects and their corresponding files to be removed from the user s iCloud storage. Detecting conflicts depends on whether your app uses UIDocument or implements custom file presenters. If your app uses the UIDocument class you detect states by monitoring the value of the documentstate property and observing the related state change notification. If you implement custom file presenters whenever a new version is reported you should check to see whether it is a conflict version. For more information about handling conflicts in UIDocument objects see Document-Based Application Programming Guide for iOS. For information about responding to conflicts in custom file presenters see File System Programming Guide. Incorporating Search into Your Infrastructure Unlike files that live in your app s sandbox files in iCloud can be added or removed without your app necessarily knowing it. When the user creates a new file on one device that file eventually appears on the user s other devices. If the instance of your app running .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.