vprtwn / bzgformviewcontroller Goto Github PK
View Code? Open in Web Editor NEWForms with validation
License: MIT License
Forms with validation
License: MIT License
i.e. tapping the "Email" label should begin editing the email text field.
When I change the first responder between cells in the same section the scrollview edge insets are wrong and the scroll view pulls up.
I'm really liking this form controller you've built. I haven't ever worked with ReactiveCocoa before so it's a little unusual, but I think it could revolutionize the logic in view controllers.
I was curious if you've ever looked into integrating a beefier validation framework? I'll likely try to wire this into the US2FormValidator library since that's what we use internally already.
Instead of using a cell accessory type, use a custom asset, drawn over the textfield's clear button
shouldShowInfoCell
supports an unnecessary use case (showing an info cell when the field is valid) and should be removed.
Be sure to invoke removeObserver: or removeObserver:name:object: before notificationObserver or any object specified in addObserver:selector:name:object: is deallocated.
This controller crash at compile in iPad Air but no in iPad Simulator. The external libraries crash with errors:
libffi/ios/include/ffi_common.h:77:1: Unknown type name 'ffi_status'
any solution?
A form should be valid when:
In order to avoid
[!] Unable to satisfy the following requirements:
- `ReactiveCocoa (~> 2.2.4)` required by `BZGFormViewController (2.4.3)`
- `ReactiveCocoa (~> 2.3)` required by `Podfile`
when a project updates to a newer version of the Reactive Cocoa pod
I am able to change the state of login/ sign up cell to invalid. But how do I make it so that in function tableView:didSelectRowAtIndexPath I do not call the backend method if both are empty ?
How do I check the state of the cell there ?
It gives me '-[UITableViewCell validationState:]: unrecognized selector sent to instance 0x15cd2ad30'
Should autoformat input with ()-, maybe add a text property that returns the numeric phone number?
I have an optional field in my form (surname prefix 'von Damme' -> 'von' and 'Damme', very common in the Netherlands). I don't want to show a checkmark when no input is given, but the validation state must always be Valid so that an empty field is also accepted.
Sounds easy enough:
_prefixCell.validationState = BZGValidationStateValid;
_prefixCell.showsCheckmarkWhenValid = NO;
I do not use any validation block. It is however rendered incorrectly: it is indeed valid, but even before typing anything, it shows the checkmark.
Could you look into this?
Hi, and thanks for that component !
Btw, the initWithCoder
method of BZGFormViewController
isn't implemented.
That creates an infinite loop when its initializer is called.
As you can implement it or simply move style
and formCellsBySection
properties in the header file (and let developer initialize these values), I let you do the change :)
showsCheckmark
should default to NO.
if YES, the cell shouldn't show a checkmark accessory view when the field is valid.
showsValidationStateWhileEditing
should default to NO.
if YES, the field should display its validation state while the user is editing the textfield, i.e.
A nice to have:
The infoCell should appear while the user is editing the field if shouldShowInfoCell
is true and the user pauses for >1 sec. The info cell should disappear if the user starts typing again.
In general, try to achieve better parity with UITableViewController
behavior
Since you've dropped the floating label field cell, maybe pull the JVFloatLabeledTextField pod requirement
ReactiveCocoa isn't worth the extra dependency, since I'm only using it in BZGTextFieldCell.
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.