How to create LoginScreen in UIViewController ?
It should appear like UIAlertView after tapping a button.
How to create LoginScreen in UIViewController ? It should appear like UIAlertView after tapping
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since iOS 5, you can add a text field or a pair of text fields to a
UIAlertViewby modifying itsalertViewStyleproperty.There are four different options for
alertViewStyle:To access the text fields, you call
textFieldAtIndex:on theUIAlertViewinstance. According to the documentation, the indices begin with 0.Legacy answer, before iOS 5.0:
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.