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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:48:06+00:00 2026-05-24T16:48:06+00:00

I am new to iPhone development, I have a program that has 7 UITextFields

  • 0

I am new to iPhone development, I have a program that has 7 UITextFields visableenter code here. When the user picks a number on the UIPicker View (1-5) that many UITextFields become hidden and unusable. That program works well. I want to have the same number that was picked from that .m file and transfered to another .m file so that 1-5 UITextFields are hidden and unusable. If it matters, the first .m file is abc.m and the second one is bca.m
if it matters I use [textfield sethidden= YES]

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-24T16:48:07+00:00Added an answer on May 24, 2026 at 4:48 pm

    You need to keep references to all those objects in the class, and define properties to them so that you can refer to them in the second .m file.

    So assuming you have a classes, abc.m

    @interface abc {
    
    UITextField *text1;
    
    }
    
    @property (nonatomic, retain) UITextField *text1;
    
    @end
    
    @implementation abc
    
    @synthesize text1;
    
    - (id) init {
    
    if (self = [super init]) {
    text1 = [[UITextField alloc] initWithFrame:CGRectMake(0,0,150,10)];
    }
    return self;
    }
    
    - (void)dealloc {
    
    [text1 release];
    [super dealloc];
    }
    

    Then you can use the text1 property to refer to that text field, given that you have instantiated the object in the second class, or hold a reference to it.

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

Sidebar

Related Questions

Very new to Iphone development here, I have a project which is successfully building
I am quite new to iphone development. I have a situation here. I have
I am quite new to iphone development. I have a situation here. I have
I am new to iphone development. What i have done here is, loading a
I am new to Iphone development. I have tried the following code, but it
I am new in iphone development and we have to integrate the QR code
I am new in iPhone Development. I have a method that requires input from
I am new to iPhone development. I have a UITextField, in that when I
I am new to iphone development.I have created map applications and displayed the cuurent
I am new to iphone development.I have created a UIview controller class and added

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.