views:

67

answers:

2

I want to start my iPhone application with a password. How I do that ?

Regards Akram Hamed

A: 

It's pretty easy, just ask your user for a password when your app starts.

kubi
A: 

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.

Alexsander Akers
The officially supported way would be to do it with (for example) a modal view controller with a `UITextField`, rather than messing with the subviews of a `UIAlertView`.
Owain Hunt