Prompting for a username and password.

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

  1. CarlisleUnited macrumors 6502

    Joined:
    Jan 30, 2007
    Location:
    Nederland
    #1
    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

    ulbador

    Joined:
    Feb 11, 2010
    #2
    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

    fishkorp

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

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #4
    Create a login screen and present it as a modal view controller.
     

Share This Page