How to create Login screen (as a UIAlertView) in iphone?

If you are looking to present a UIAlertView with a textbox, this is not supported in iOS in any public API, although you could walk the view hierarchy and add your own textbox.

Up vote 1 down vote favorite 1 share g+ share fb share tw.

It should appear like UIAlertView after tapping a button. Iphone uiviewcontroller uialertview uianimation link|improve this question asked Jun 27 '11 at 12:22Surjit Joshi653210 89% accept rate.

If you are looking to present a UIAlertView with a textbox, this is not supported in iOS in any public API, although you could walk the view hierarchy and add your own textbox. Alternatively, create a new UIViewController subclass and present it modally. Then, you can check the values when the view is dismissed.

That worked... thanks a lot.. – Surjit Joshi Jun 28 '11 at 4:53.

Have a look at this link, and add username, password fields to UIAlertView.

Thats nice tutorial.. thanks. – Surjit Joshi Jun 28 '11 at 4:54.

You can subclass UIAlertView and add UITextFields to it and define a designated initializer like this: (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)aDelegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitle:(NSString *)otherButtonTitle { } inside this method initialize your textfields and add those as subView to your view (subclassing UIAlertView). Hope it helps you.

As of iOS5, UIAlertView now supports a login screen using the Alert Style UIAlertViewStyleLoginAndPasswordInput. C.f. UIAlertView Class Reference.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions