Using keychain to store username and password in xcode 4

前端 未结 2 1684
Happy的楠姐
Happy的楠姐 2021-02-04 20:07

I don\'t want to use NSUserDefaults as I have been told it\'s not a good way to save a username and password.

So I was going to use a Keychain, but I have

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 20:39

    This is the best I have found till date... It five a very simple implementation of saving passwords and username to keychain. Please remember to include security framework in your project.

    https://web.archive.org/web/20160305031351/http://iosdevelopertips.com/core-services/using-keychain-to-store-username-and-password.html

    Keep in mind that this doen't work on simulator.

提交回复
热议问题