简体   繁体   中英

Can I access the keychain on the iPhone with MonoTouch?

I have recently started to develop applications for iPhone with MonoTouch and have to store user names and passwords on the phone. I want to use the keychain for this but can't find anything in the MonoTouch documentation about it. Is it possible to use it directly with MonoTouch or will I have to write some C++/C/Objective-C code that uses the keychain and export it to MonoTouch?

According to the current documentation , there is no bindings for the keychain.

Your solutions are:

  • post a request to Novell for the bindings.
  • write a .NET wrapper around the KeyChain function by accessing them through P/Invoke. The following page gives you some hint on how to do it. If you need some direction on how to provide an object-oriented wrapper for KeyChain, you can take some inspiration from the EMKeyChain library .

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