-1

enter image description hereThis Below my data I want to store on IClouds IOS, How Can I do that ,is it possible to store on iClouds ,please give me a code for that

enter image description here

This Below my data I want to store on IClouds IOS, How Can I do that ,is it possible to store on iClouds ,please give me a code for that

  • "Please give me a code" is not an on-topic question for SO. Please read [ask] before posting for guidance on what sorts of questions are allowed. And it's also a good idea to read the official docs before asking questions. https://learn.microsoft.com/en-us/xamarin/ios/data-cloud/introduction-to-icloud – Jason May 10 '21 at 14:01
  • About storing data on iCloud, you can refer to this [Using iCloud with Xamarin.iOS](https://learn.microsoft.com/en-us/xamarin/ios/data-cloud/introduction-to-icloud) and [CloudKit in Xamarin.iOS](https://learn.microsoft.com/en-us/xamarin/ios/data-cloud/intro-to-cloudkit). – 大陸北方網友 May 11 '21 at 01:06
  • Is There any code available to store a data ,if yea then pleas provide me link – priyanka pawar May 11 '21 at 04:15

1 Answers1

0

To save the "MyFun item" data, it is recommended to serialize the data and save it to a json file or an xml file.

For JSON serialization, you can install the Nuget package Newtonsoft.Json. For more info, you can refer to this document.

Or XML serialization, you can create an instance of XmlSerializer Class to serializes and deserializes objects into and from XML document.

Here are some related SO threads you can refer to.

How to write a JSON file in C#?

Serialize an object to XML

If you have got the serialized data, as mentioned in the comment, you can download official demo Xamarin.iOS - Introduction to iCloud, then pass it to MonkeyDocument.DocumentString.

大陸北方網友
  • 3,696
  • 3
  • 12
  • 37