Here is the link fullfilling your requirement
http://knowledgetransferinobjectivec.blogspot.in/2012/01/customized-uialertview-to-input.html
&
http://harikanangi.blogspot.in/2011/09/uialertview-extended-to-allow-users-to.html
The following link creates a custom alertview and allows the user to fill credentials . Using the didSelectButtonAtIndex delegate of UIAlertView you can catch the event when the user press ok or submit button . Hope it helps you