2

I have an app where people could enter sensitive personal information. Is there a reasonable method to protect this from - even family access?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
ICL1901
  • 7,632
  • 14
  • 90
  • 138

1 Answers1

2

At the very first launch of your App, ask a user to create a password, save it somewhere, then on each launch after the first, bring up a modal view controller with a UITextField and set the secureTextEntry property to YES (myPasswordTextField.secureTextEntry = YES;) and do not dismiss the modal view until the password matches one that has been previously set.

Apple Modal View Controllers Example
UITextField Docs
UITextInputTraits Docs

chown
  • 51,908
  • 16
  • 134
  • 170
  • Thanks! That's straightforward and easy to implement. It's up to the user whether they want to invoke this and/or if they want to save/store their password. – ICL1901 Nov 02 '11 at 00:50