Giter VIP home page Giter VIP logo

ibaforms's Issues

iOS6 and hiddenCellCache

In my app I'm experiencing a hang with repeated form reloads. (setting the formDataSource on an instance of an IBAFormViewController repeatedly). It doesn't happen with a simple tableView reloadData, but does after repeatedly calling setFormDataSource:

I've narrowed the problem down to the hiddenCellCache. If I comment out the following in IBAFormFieldCell then the hang goes away:

  • (void)didMoveToWindow {
    if (self.window == nil) {
    NSAssert((self.hiddenCellCache != nil), @"Hidden cell cache should not be nil");
    // [self.hiddenCellCache addSubview:self];
    }
    }

I haven't figured out why this hack isn't working in iOS6, nor how to otherwise fix it.. By disabling it in this way the next/previous functionality will break (which actually I'm OK with in this app.)

Is anyone else experiencing this and do you have any insights?

CompleteForm:

When completing the form, the field that was last edited (has the current edit in it (cursor, if you will)) isn't saved to the dictionary as it has not finished editing. How can do you resign the firstresponder for this field such that the setModelValue will save the value to the dictionary so it can be processed in the completeForm?

- (void)completeEditForm:(id)sender{


    //Validate

    if ([self.itemModel valueForKey:@"number"] == nil || [[self.itemModel valueForKey:@"number"] isEqualToString:@""]) {
       //DO SOMETHING
     }
}

label widh

Hi,
I've tried to setup :

IBAFormFieldStyle *style = [[IBAFormFieldStyle alloc] init];
style.labelFrame = CGRectMake(style.labelFrame.origin.x, style.labelFrame.origin.y, style.labelFrame.size.width + 100, style.labelFrame.size.height);

however this make label view larger, but input field is not shrinked. Is there any other way to deal with field label width other than labelFrame?

Form Validation & Clear form

HI,
I look around the code and some Google search. Is there functions for Form Validation in IBAForms?

I also need to reset or clear form after a record is added so that i can add another. Does this function have? or any mechanism to get this done?

Your suggestions are much appreciated

Regards;

Slider FormField

Hi there,

Great work on this product, it makes my life a lot easier.

On a recent project, I found need for a slider form field but noticed that this widget is absent from IBAForms. I wrote a custom class based partially on the boolean form field. I'd like to contribute it upstream.

Cannot clear text from fields of sections that don't have focus

I have two sections, each with text fields.

If i have the user click a button and try to programatically reset these fields to empty values:

        // Clear the input from the text fields of all sections
        for (IBAFormSection *section in self.formDataSource.sections) {
            for (id formField in section.formFields) {
                if([formField isKindOfClass:[IBATextFormField class]]) {
                    ((IBATextFormField*)formField).textFormFieldCell.textField.text = @"";
                }
            }
        }

The only time that the fields in the first section will get cleared is if it had focus.

TextForm field issue with empty value

Hi,

I have noticed that if I have at least 2 text fields in one section, and start filing data in order so first one is filled, then second one is filled and then I tap at custom button on view that process values, then the second text field is empty (nil). "textFieldShouldReturn", nor "deactivate" is not called at all. I'm not sure why. (iOS 5.0.1)

IBAPickListFormField with NSDictionary options how?

Hello,
I've a NSDictionary with Object like City Names and Key like a number identification, how can i use this scheme with IBAPickList? I've see only NSArray. It's possible to create a transformer for this?

Thanks

Support for removing form fields

I'm building a form where some read-only fields become editable after authentication.

It would be nice to be able to remove fields and replace them at runtime. (In my case substitute editable fields for the readonly ones).

Currently, I'm working around this by: Having an abstract data-source that defines the methods to build the fields and two concrete classes that build either readonly or editable fields. . . substitue the datasource after auth.

TableView bounces when navigating between sections and/or form fields

Steps to reproduce:

  1. Launch the IBAFormsShowcase app.
  2. Navigate to the "Traits & Transformations" section.
  3. Tap on [Previous] to go to the last field within the "Pick Lists" section. You should notice a rapid bouncing of the table view as it animates the focus on to the "Multiple" field under the "Pick Lists" section.

Newer tag for use with CocoaPods

Hi,
I'm using CocoaPods to manage dependencies, and the Podspec for this project is pointing at the year-old 1.0.0 tag. Would you mind creating a newer tag on the repo so we can create an updated Podspec that points there?

Thank you!

Add support for form field lookup using key paths

Given an IBAFormDataSource data_source, and a valid key path key_path which is mapped to one or more IBAFormField item(s), provide a method with the following signature on the IBAFormDataSource class:

- (NSArray *)formFieldForKeyPath:(NSString *)keyPath;

Example:

NSArray *form_fields_array = [data_source formFieldForKeyPath:key_path];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.