Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4572608
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:40:11+00:00 2026-05-21T19:40:11+00:00

I want to enter a password in a webpage I load in an UIWebView.

  • 0

I want to enter a password in a webpage I load in an UIWebView. The password is a string, and I want to enter the password and hit a button in the page, automatically when the View loads.

Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:40:12+00:00Added an answer on May 21, 2026 at 7:40 pm

    If you’re using a UIWebView, I assume you’re loading some web service into that WebView. Why not build your login system into the web service? You could even just use HTTP Basic Auth.

    If you’re managing the passwords within your cocoa app, then I would probably implement a UIAlertView with a UITextField asking for the password. When the user presses Login you can validate the password and then load your web service in your UIWebView.

    If you’re managing the passwords in a database on the website then you’d build an html/js/php/mysql login form and load it in the UIWebView first.

    Update

    I’d go with the first option and display your own login form using cocoa controls like the UIAlertView with 2 UITextFields. You can then save the username and password using the keychain services and submit them every time the users launches the app or the web session expires.

    If you want to try this method I’d suggest having a look at the ASIHTTPRequest framework. In particular ASIFormDataRequest which let’s you easily send a form with the correct fields.

    - (void)login
    {
        ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
    
        // Change these values to the ones in NSUserDefaults and the KeyChain
        [request setPostValue:@"Joe" forKey:@"username"];
        [request setPostValue:@"Secret" forKey:@"password"];
    
        [request setDelegate:self];
        [request startAsynchronous];
    }
    
    - (void)requestFinished:(ASIHTTPRequest *)request
    {
        // Use when fetching text data
        NSString *responseString = [request responseString];
    
        // Use when fetching binary data.
        NSData *responseData = [request responseData];
    }
    
    - (void)requestFailed:(ASIHTTPRequest *)request
    {
       NSError *error = [request error];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the password field on page. I want to display text Enter password
I want enter(Go.... etc) button on my iPad keypad. So that when I hit
I have a text-box, and I want to enter a string in language A
I'm building a GWT Application. But i dont want user to enter any html
There is a webpage that has Input textfields. I want to launch the page
I've installed Strong Password Extension for MediaWiki. However, in password changing page, when enter
On most sites on the register user part they want you to enter password
I want to make an edit box where an user must enter a password.
I want to enter floating point values to some of the record. So if
Scenario: I want to enter an address (Sweden, Stockholm) into an inputfield and get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.