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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:09:17+00:00 2026-06-09T09:09:17+00:00

I have a scoreboard app that has many UITextFields that holds the scores for

  • 0

I have a scoreboard app that has many UITextFields that holds the scores for each player of every round. When clicking on the text field, instead of just using the keyboard to input a score, I want to create another viewController (a popover or a page-curl modal segue would work). This 2nd view controller has a special calculator the player can use to input their score. So basically every score box triggers an action to the calculator view. Once I have the result on the calculator view, I want to dismiss the view and have the score that was just calculated to appear in the score box that cause the segue to occur. (I want to transfer the a specific UILabel.text from the 2nd view Controller back to the first view controller).

After trying a bunch ways to do this, I feel like I must learn about delegates. I’m trying to wrap my head around this concept and see if this really does apply to what I’m trying to do. It seems I have to somehow have my UITextFields (the score boxes) “listen” or “wait for” the calculator result to change. Is this correct? Am I over complicating things? Do I need to learn about delegates to make this work?

  • 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-09T09:09:19+00:00Added an answer on June 9, 2026 at 9:09 am

    Yes you can play around with delegation , that way you can achieve what you want to.Also you can use “NSNotificationCenter” to listen to specific events and call methods or whatever you want to.

    Like this:

    Add an observer :

    [[NSNotificationCenter defaultCenter] addObserver:self
            selector:@selector(receiveTestNotification:) 
            name:@"TestNotification"
            object:nil];
    

    then post it from where you want to like you said from textfield input:

    [[NSNotificationCenter defaultCenter] 
            postNotificationName:@"TestNotification" 
            object:self];
    

    And receive it in a method like this

    -(void) receiveTestNotification:(NSNotification *) notification
    {
        // [notification name] should always be @"TestNotification"
        // unless you use this method for observation of other notifications
        // as well.
    
        if ([[notification name] isEqualToString:@"TestNotification"])
            NSLog (@"Successfully received the test notification!");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that has two viewcontrollers Viewcontroller and OptionsViewController. Viewcontroller is the
I have an app that includes a tableView . The tableView has several sections,
I have an iPhone app that has several different view controllers. A login screen
I have a storyboard iOS app that has a number of views I push
I have this iPad app using Storyboard. There are some file that are marked
I'm a complete beginner in WPF and have an app that uses StoryBoard to
I have a pretty basic app flow that is quite linear, so it fits
I have a UIViewController in a storyboard iPhone app that I need to reuse
In my WPF app, I have a feedback control that I want to appear
I have a Facebook app that is built as an iFrame. I am using

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.