开发者

Can I access the keychain on the iPhone with MonoTouch?

开发者 https://www.devze.com 2022-12-30 02:22 出处:网络
I have recently starte开发者_如何学JAVAd 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

I have recently starte开发者_如何学JAVAd 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.
0

精彩评论

暂无评论...
验证码 换一张
取 消