What is the best way to maintain the login credentials in iOS?

后端 未结 3 1159
傲寒
傲寒 2021-02-03 11:32

I need to maintain my log-in credential for throughout the app so, I have 3 options to maintain my log-in credentials...

1 key chain
2 NSUserDefaults
3 plist
         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 12:07

    i think NSUserDefaults is simple way to store the login credentials here is a tutorial

    http://www.icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/

提交回复
热议问题