菜鸟教程小白 发表于 2022-12-11 20:26:26

ios - 如何密码保护iOS应用程序文件?


                                            <p><p>我有一个应用程序,人们可以在其中输入敏感的个人信息。是否有合理的方法来保护它免受 - 甚至是家人的访问?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>在您的应用程序第一次启动时,要求用户创建密码,将其保存在某个地方,然后在第一次启动后的每次启动时,调出 <a href="http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html" rel="noreferrer noopener nofollow">modal view controller</a>与 <a href="http://developer.apple.com/library/ios/ipad/#documentation/uikit/reference/UITextField_Class/Reference/UITextField.html" rel="noreferrer noopener nofollow"><code>UITextField</code></a>并将 <code>secureTextEntry</code> 属性设置为 <code>YES</code> (<code>myPasswordTextField.secureTextEntry = YES;</code>) 并且在密码与具有之前已经设置好了。</p>

<p> <a href="http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html" rel="noreferrer noopener nofollow">Apple Modal View Controllers Example</a> <br/>
<a href="http://developer.apple.com/library/ios/ipad/#documentation/uikit/reference/UITextField_Class/Reference/UITextField.html" rel="noreferrer noopener nofollow"><code>UITextField</code> Docs</a> <br/>
<a href="http://developer.apple.com/library/ios/ipad/#documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html" rel="noreferrer noopener nofollow"><code>UITextInputTraits</code> Docs</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何密码保护iOS应用程序文件?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/7971893/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/7971893/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何密码保护iOS应用程序文件?