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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:45:20+00:00 2026-05-29T04:45:20+00:00

I am making an iPhone app which uses UIButton s with Placeholder text on

  • 0

I am making an iPhone app which uses UIButtons with Placeholder text on them to add and subtract pre-defined constant values; that is, if there are 3 buttons, titled A, B, and C, each of which have numerical values associated with them, I need the most simple way possible to take the values of the buttons, (which isnt explicitly shown on each button) and add them together. So if A=x and B=y, and a user pressed button A and B, and then hit an enter or calculate button, the value of A+B (x+y) would be calculated and displayed. My current plan is to use an NSArray, and append the values of A and B onto it, but as always, a second opinion is welcome. Hopefully this explanation was straightforward enough and easy to understand. I need this to be able to add a (theoretically) infinite number of variables. I.e: A and B multiple times, but also C, D, E…etc. This is the main reason why I was considering NSArray.

  • 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-29T04:45:22+00:00Added an answer on May 29, 2026 at 4:45 am

    You can make a subClass of UIButton that holds some data associated with it. Either you can set tags of your buttons and using tags as indexes take data from your NSArray.

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

Sidebar

Related Questions

I am making an application (iPhone app) which gets information (jokes) from an RSS
I am making an iPhone app which needs to send a couple of arrays
I am making an iPhone app in which on one of the UIWebView I
long time reader, first time asker... I am making a music app which uses
I am making an iPhone app which has ASCII art. I face a problem
I am making an iPhone app which has a requirement to implement the UIPageControl.
I am making an iPhone app which requires the current Stock Prices. I am
I am making an iPhone app which has its database on the web server.
I am making an iPhone and iPad app, which has a requirement for iAds.
I'm making an iPhone App which involves balloons (UIImageViews) being spawned from the bottom

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.