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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:42:18+00:00 2026-06-13T15:42:18+00:00

I have got multiple textfield on a formsheet view. I want to append them

  • 0

I have got multiple textfield on a formsheet view. I want to append them when user clicks a button. But only one of them returns the value in textfield rest of them returns null.

.h

@property (nonatomic, strong) IBOutlet UITextField *textMonth;
@property (nonatomic, strong) IBOutlet UITextField *textDay;
@property (nonatomic, strong) IBOutlet UITextField *textYear;
@property (nonatomic, strong) IBOutlet UITextField *textMeetingName;

.m

@synthesize textDay=_textDay;
@synthesize textMonth=_textMonth;
@synthesize textYear=_textYear;
@synthesize textMeetingName=_textMeetingName;


- (BOOL)disablesAutomaticKeyboardDismissal {
    return NO;
}
//this dismiss keyboard on ios
- (BOOL)textFieldShouldReturn:(UITextField *)textField {

        [_textMonth resignFirstResponder];
        [_textDay resignFirstResponder];
        [_textYear resignFirstResponder];
        [_textMeetingName resignFirstResponder];


    return YES;
}
//submit create folder request to dropbox
- (IBAction)sendCreateFolderRequest:(id)sender{

    if ([_textMonth.text intValue]>12 ||[_textMonth.text intValue]<1 ) {
        //alertview choose a number between 1 and 12
        [self popUpAlertview:@"Please choose a month between 1 and 12"];
    }
    else if ([_textDay.text intValue]>31 || [_textDay.text intValue]<1){
        //alert view choose a number between 1 and 31
        [self popUpAlertview:@"Please choose a day between 1 and 31"];
    }
    else if ([_textYear.text intValue]<0){
        //alert view please enter a correct year
        [self popUpAlertview:@"Please enter a correct year"];
    }
    else if ([_textMeetingName.text length]<=1){
        //alert view meeting name is too short please enter a longer name
         [self popUpAlertview:@"Name is too short. Please enter a longer name"];
    }
    else{

        NSString *sendFolderName=[NSString stringWithFormat:@"/Up2Date/%@.%@.%@.%@",_textMonth.text,textDay.text,textYear.text,textMeetingName.text];

        NSLog(@"Send folder name %@",sendFolderName);

    }

}

Input is 11,12,13,asdaad
Output is Send folder name /Up2Date/11.(null).(null).(null)

Weird thing is my if else methods catches if field values are wrong such as 11,45,20 it pops up alert view as I expected.

So what seems to be the problem ? Maybe I should not resign them first responder all at once?

  • 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-13T15:42:19+00:00Added an answer on June 13, 2026 at 3:42 pm

    Change

    NSString *sendFolderName=[NSString stringWithFormat:@"/Up2Date/%@.%@.%@.%@",_textMonth.text,textDay.text,textYear.text,textMeetingName.text];
    

    to

    NSString *sendFolderName=[NSString stringWithFormat:@"/Up2Date/%@.%@.%@.%@",_textMonth.text,_textDay.text,_textYear.text,_textMeetingName.text];
    

    You forgot add the underscores.

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

Sidebar

Related Questions

I have got a button field in my grid view. When I click multiple
Is it possible to paqckage multiple rpms into one file. I have got two
I have multiple tabs and within them I have got an activity group for
I've got an application which displays a field that can have multiple entries but
I have got a UIPickerView with multiple components/columns. I want the UIPickerView to add
I have got some questions about Dotnetnuke: Can i create/run multiple websites having only
I have got this circle detection working but only detects 1 circle. How would
I have got the requirement to find the core file in multiple box/machine and
I have got a single file in which I need specify classes in multiple
I have got access_token. Using zend framework. I have obtained token for multiple permissions.

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.