简体   繁体   中英

ios App creating a local file on mac

Helle guys,

Form this page , we know that each app is an island, which means that an app is generally prohibited from accessing or creating files outside its containers. but also the page says One exception to this rule occurs when an app uses public system interfaces to access things such as the user's contacts or music. In those cases, the system frameworks handle any file-related operations needed to read from or modify the appropriate data stores. Can any one presents an example of using public system interfaces in codes to edit a simple contacts seem like "Hello world" in txt is not possible or point me to a page has such example? Thank you.

There are some like:

Theses some of the most used once, there is not API that will allow an iOS app to create a local file on your mac. You will need to build to apps for this, one for iOS and one for the OSX. These two apps should then communicate with each other to so that the OSX app can create the file.

An other option is to use iCloud with CloudKit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM