iPhone Application with a password
I want to start my iPhone application with a password开发者_JAVA百科. How I do that ?
Regards Akram Hamed
What I would do is create an UIAlertView
instance and add a UITextField
as a subview. This is where the user will put in the password. When the alert view completes, get the password and see if it's the right one. Then continue running the app or quit.
It's pretty easy, just ask your user for a password when your app starts.
精彩评论