Prompting for a username and password.

Discussion in 'iOS Programming' started by CarlisleUnited, Apr 16, 2010.

  1. CarlisleUnited macrumors 6502

    Jan 30, 2007
    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.
  2. ulbador macrumors 68000


    Feb 11, 2010
    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
  3. fishkorp macrumors 68020


    Apr 10, 2006
    Ellicott City, MD
    If you're prompting for their Twitter username and password you should probably just use the Twitter oAuth stuff.
  4. Luke Redpath macrumors 6502a

    Nov 9, 2007
    Colchester, UK
    Create a login screen and present it as a modal view controller.

Share This Page