Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CarlisleUnited

macrumors 6502
Original poster
I am working on an app that will include the option to submit scores to twitter and have been trying to figure out the best way to prompt for the username and password within the app. As far as I can tell there is no standard way to do this with a UIAlertView. I think the way safari prompts for a username and password is really good, anybody know if this do-able in the SDK?

Thanks for the help guys.
 
I am working on an app that will include the option to submit scores to twitter and have been trying to figure out the best way to prompt for the username and password within the app. As far as I can tell there is no standard way to do this with a UIAlertView. I think the way safari prompts for a username and password is really good, anybody know if this do-able in the SDK?

Thanks for the help guys.

Add the textfield as a subview on the UIAlertView

[myAlertView addSubview:myTextView];

You'll probably have to do something to the AlertView to shift it up when the keyboard pops up
 
If you're prompting for their Twitter username and password you should probably just use the Twitter oAuth stuff.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.