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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:10:50+00:00 2026-05-24T05:10:50+00:00

I am new here and just started learning about Objective C. I am having

  • 0

I am new here and just started learning about Objective C.
I am having problem in making a calculator with codes.
For example, i want to set some codes e.g. A=55, B=42, C=19…..to Z= 66
Then allow user to type in any letter in the textfield and calculate the final sum of value.

My question is how can i set these codes (A-Z) then my calculation method can run user entered letters?

        result.text = [[NSString alloc] initWithFormat:@"%i",????? ];

Many Thanks

  • 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-24T05:10:51+00:00Added an answer on May 24, 2026 at 5:10 am

    The first thing that comes in my mind is to save those values in a int[] and to retrieve them when you need. Of course it can be annoying to store all the values, especially if they don’t have a mathematical order.
    To get those values you may simply do something like

    result.text = [[NSString alloc] initWithFormat:@"%i",codes[letter-'A']];
    

    where codes is the int[] where you stored your values and letter is the chose letter

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

Sidebar

Related Questions

As someone new to GUI development in Python (with pyGTK), I've just started learning
I am new to Scala, just started learning, so this is basic beginner question.
I just started learning Objective-C and OOP ... so I have very stupid question
Just started learning Groovy, got the PragProg book Programming Groovy and had a problem
Here's my situation. I've just started a new job and I've inherited an application
I recently started learning Objective-C 2.0, with a book, and I want to know
I'm extremely new to CSS--I'm talking I just started learning it yesterday. Anyways, I
I just started a new Android project, WeekendStudy to continue learning Android development and
I'm just getting started learning how to use Subversion for building my web applications,
I'm assuming my lack of knowledge (I just started learning Flex yesterday, hah!) is

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.