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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:58:26+00:00 2026-05-31T21:58:26+00:00

I am trying to do an app i just stuck with some logic in

  • 0

I am trying to do an app i just stuck with some logic in that app. It contains 10 fields in which user need to enter text in all the fields.After this screen i designed 5 screens which contains labels in all the screens in which the text entered by the user will display in all the screens.

What exactly i need is after user enters the text he chooses one field from 10 fields.
After choosing a field he advances to labels screens in which he need to decide weather he chosen field is there in that screen or not ,the same thing will happen in the rest labels screens also.If the chosen field is there in the particular screen then the user will press a button named YES. In which screen he presses YES button i need to update that buttons in that particular screens and at last i need to get update of that YES buttons . In what ever screen i am getting the update of the button depending on that my result will be displayed.

I Just need how can i update that YES buttons if user presses in the different views so that i can get count of which screen the button is pressed and depending on that i can display result.

Help me in logic of this app. 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-31T21:58:27+00:00Added an answer on May 31, 2026 at 9:58 pm

    you can try using core data for this,

    another approach would be to have an array, composed of dictionaries [to pass around in all your views]
    like this:

    arrayFields, make it a mutable array

    composed of dictionaries with this objects : field and pressed

    so you can go checking and setting each object and specify if it has a yes or a no associated with it and act accordingly

    good luck!

    edit,
    you need an array as a property
    so in your

    Starting1classViewController.h

    @interface **** {
    NSMutableArray *_fields;
    UITextField *_textfield1;
    }
    
    @property (nonatomic,retain)  NSMutableArray *fields;
    

    @property (nonatomic,retain) UITextField *textfield1;

    Starting1classViewController.m

     @synthesize fields = _fields;
    
      - (void)dealloc {
        [_fields release];
        [_textfield1 release];
        [super dealloc];
     }
    - (void)viewDidLoad {
    
        self.fields = [NSMutableArray array];
    
        self.textfield1 = [[[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 20)]autorelease];
        [self.view addSubview:textfield1];
    }
    

    create your textFields, and when filled, have a button that assigns the values of the textfields to a dictionary for each textField so, this dictionary goes into the array,

    - (void)textFieldToArrayOfDictos {
    
        NSMutableDictionary *fieldsDicto = [NSMutableDictionary dictionary];
    
        [fieldsDicto setObject:self.textfield1.text forKey:@"text"];
        [fieldsDicto setObject:@"no" forKey:@"selected"];
    
    
        [self.fields addObject:fieldsDicto];
    
    }
    

    so you pass the array around your views, so you can populate your labels with the data from the array,
    modifing the index needed with selected or not,
    you just need to know what index is what,
    or if you wanted to have the name of each field asociated to the values, you could make a dictionary of dictionaries,

    😉

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

Sidebar

Related Questions

I'm writing a little app that displays some graphics and just now I'm trying
Im kinda stuck. I have an activity in my app that just wont go
I'm trying to read a simple unicode (UTF-16) text file with just some numbers
I was just trying to setup my first app on heruko... As it says
Just trying to write my first ever WP7 app. I have several hundreds of
I just successfully signed an android app I am trying to RE-publish to the
Right now I'm just trying to test my app on my phone and not
I'm currently trying to port an app from asp.net to php, however I just
I'm trying build an App Engine connected Android application and am having some problems
I'm trying to write a simple WPF app that has two ellipses, joined by

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.