swift - IOS KeyChainWrapper value is nil after stored -


im beginner in swift 3.0. convert existing swift project 3.0 swift. after converrted, have issues storing user& password using key chain wrapper.

i have checked result of bool, show false , value nil.

can know possible causes? guiding.

//this how store var savesuccessful:bool = keychainwrapper.defaultkeychainwrapper().setstring(txt_userid.text!, forkey: "userid")     let savepass:bool = keychainwrapper.setstring(txt_password.text!, forkey: "password")   //this how get/retrieve  var password:string? = keychainwrapper.stringforkey("password")  

take @ answer here. problem "keychain sharing" capability has enabled.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -