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 7748377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:46:09+00:00 2026-06-01T10:46:09+00:00

The iPad application I’m working on requires that the user provide a username and

  • 0

The iPad application I’m working on requires that the user provide a username and password that are authenticated against a server before they can enter the application proper. I’m considering making a subtle change so that whitespace at the start and end of the username and password are silently ignored.

Good idea? Bad idea? Reasons for your position?

This has come about after I demonstrated the product to a customer today and struggled to log in. After three attempts I finally realised that I’d somehow managed to put a space before my username, and of course, that didn’t match any username on the server. There’s a very, very subtle difference in width with an additional space at the start of a text field on the iPad, given that the field border is spaced away from the first character anyway, and it took me some time to notice.

  • 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-06-01T10:46:10+00:00Added an answer on June 1, 2026 at 10:46 am

    I think that it is a good practice to trim the whitespaces, since they are usually considered invalid username/password symbols (users can miss them very easily, especially if they use more than one).

    NSString *trimmedString = [myString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPad application that pulls in all of its data from an
i am currently working on an iPad application, my client wants to add Function
I have an iPad application that uses the whole screen (that is, UIStatusBarHidden is
I'm creating an iPad application that supports ONLY LANDSDCAPE mode. I'm using storyboards. Even
I'm developing iPad application in Flash Builder 4.6. My application stop working on device
How can we implement iPad application that retrieve or store data from remote data
I have an iPad application that can be used in all four view modes
My iPad application has a number of navigation controllers that are chosen dependant on
In my iPad application, I'm letting the user select an image using the following
I'm building an iPad application where I need user to create entity dynamically. I'm

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.