Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row value assigned too late, otherwise nil #2

Closed
RobertAudi opened this issue Apr 13, 2014 · 3 comments
Closed

Row value assigned too late, otherwise nil #2

RobertAudi opened this issue Apr 13, 2014 · 3 comments

Comments

@RobertAudi
Copy link

First of all, I'd like to thank you for this wonderful library. Great work 👍

Now about the issue:

Let's say I have a text field cell. Unless the focus moves away from the text field (ie: the keyboard has been dismissed or the user went to the next text field), [[self.form formRowWithTag:@"title"] value] returns nil regardless of the contents of the text field. That would be wrong if the text field's text is not empty. So consider this scenario:

  1. The user taps on the text field
  2. The user enters a value
  3. The user taps on the "Done" button

At this point, there is a problem because the value of the text field is nil even though it shouldn't be.

@gastonborba
Copy link
Contributor

This should be fixed now in 1.0.1

@gutoperes
Copy link

First I have to say that I am in love with XLForm !

I was able to bypass the issue using a subclass of XLFormViewController:

override -(void) savePressed:(UIBarButtonItem *)saveButton
and add [self.view endEditing:YES];

Hope that it help!

@mtnbarreto mtnbarreto added this to the v1.0.1 milestone Apr 22, 2014
@mtnbarreto
Copy link
Member

@RobertAudi , @gutoperes happy to hear that!
This fix will be released on 1.0.1 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants