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

  • Home
  • SEARCH
  • 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 6916123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:33:42+00:00 2026-05-27T09:33:42+00:00

I am making an app with multiple textfields. I would like when the user

  • 0

I am making an app with multiple textfields. I would like when the user enters a number in the textfield, to automatically add the percent symbol when editing ends. Right now, the only way i know how to do that is to convert the text value to float, then use NSNumberFormatterPercentStyle and then send back the value. I guess that there should be a simpler and faster way to do that for multiple textfileds. Does anyone know?

  • 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-27T09:33:43+00:00Added an answer on May 27, 2026 at 9:33 am

    You could use the UITextFieldDelegate‘s textFieldDidEndEditing: method.

    For example:

    - (void)textFieldDidEndEditing:(UITextField *)textField {
    
        NSString *oldTextFieldValue = textField.text;
    
        textField.text = [NSString stringWithFormat:@"%@ %%",oldTextFieldValue];
    }
    

    Note the double “%” in the stringWithFormat: method: this is because a single % on its own is a “format specifier” and will not be taken into account and xcode will give you a warning, so you need to protect it with a second %.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an iPad app, it currently has multiple UITableViews named like so:
In my iPhone app, the user will be making multiple NSStrings. Once these are
I'm making an app that will be installed and run on multiple computers, my
i've been making web app's and working with various server side language like php,
I'm making an app where I need to save the text in multiple views
I'm making an iPad app. In the app I have multiple UITextViews. I've already
I'm making an App that will have multiple, identical, objects and I need to
How to create a custom login system with google-app-engine's User class? I'm making my
I'm creating a CAD-like app (Qt-based), it will be a multiple document interface and
I am making an iPad app where you can download files (like PDF, doc,

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.