ittybittydude / ibaforms Goto Github PK
View Code? Open in Web Editor NEWA simple iPhone forms library
License: Other
A simple iPhone forms library
License: Other
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:
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?
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
}
}
Steps to reproduce:
No ARC support
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?
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;
hi, I'm the beginner for IBAForms.
is it possible to create a IBATextFormField with default value?
Hi everybody,
Please add the "shouldAutorotateToInterfaceOrientation" in "IBAFormViewController".
Regards ;
Hi ,
how to get data from DetailViewcontroller this code.
[buttonsSection addFormField:[[[IBAButtonFormField alloc]
initWithTitle:@"Open Detail" icon:nil
executionBlock:^{
} detailViewController:view] autorelease]];
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.
Would you consider porting over or adding simple cancel/clear behavior for fields as done in the following branch?
https://github.com/shouze/IBAForms
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.
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)
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
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.
Steps to reproduce:
THanks for library, excellent one for beginners like me, want to make sure whether i can use this in my client app
hi,
i run your samples, there are prev-next-done buttons on uikeyboard, but in my project they are not shown.
should i make some modifications?
Create form from plist and use that form as data entry?
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!
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];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.