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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:52:20+00:00 2026-06-01T16:52:20+00:00

I am starting objective C and i want to make a form with text

  • 0

I am starting objective C and i want to make a form with text inputs. I have many Text Fields on my view and i want to check if the values written are good (only numbers, only text).

How can i do that? I found some documentation but not a lot… If anyone has a good ressource to help me to make forms.

I also want to know how to get all values in an array.

Thank you for help and sorry if my questions look terrible and easy.

I know ruby, php, javascript 🙂

  • 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-01T16:52:21+00:00Added an answer on June 1, 2026 at 4:52 pm

    Given a textfield called textfield1, you can access its string content via textfield1.text. This will yield a NSString-object which you can then analyze. You may use NSRegularExpression for this, or loop through 1-char-substrings or whatever you like, read up on NSString for this. A Google Search will also quickly yield you examples on how to use NSRegularExpressions.

    Seeing that you’re working for iOS, you might want to consider using special controls for your specific needs. For example, rather than using a textfield to request a number, and complain when the user inputs a non-number, present him a slider instead of a textfield.

    For your second question, given an array array1 with NSString objects in it, you can loop through them by fast enumeration:

    for (NSString* string in array1)
    {
      // do something with each string in array1
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, I'm starting to play around with Objective-C and I want to make
Starting a new rails project and we have a well-thought-out color palette, and want
I'm just starting to learn Objective-C, one thing I'm trying to learn is good
I'm just starting to teach myself Objective C and have been fooling around with
I am just starting out with Objective-C but have done a bunch of C++.
I'm starting out Objective-C and I was wondering, why do we have to put
I'm starting to learn how to read message syntax in Objective-C and want to
I'm just starting to teach myself objective-c and attempting to learn the cocoa touch
I am looking for a simple but efficient Objective-C algorithm which, starting from a
I'm starting work on an Objective-C++ project, getting a feel for how the synthesis

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.