Giter VIP home page Giter VIP logo

textfieldvalidator's Issues

Error in Swift

I tried to implement TextFieldValidator in a swift project. It was added and working smooth for validation portion, but when I clicked on the error, it crashed. The error was related to superview. I added a screenshot with it, have a look.
screen shot 2015-08-04 at 1 17 07 pm

How to use with UITableView?

Hi,

Thanks for great validation text field, it would be nice if you tell how to use with UITableviewCell with uitextfield, i tried to use the way it has been shown in demo, but when hit on error icon it's not displaying the error dialog

validate textfield inside tableviewcell

I've a form page, with more than 6 cells. each cell have a textfield with a single reusable identifier.

i've successfully implemented the validation on a submit button click when i've less than 6 cells. in this case all the cells are visible on view.
problem arises when there are some cells out of the view, so calling [tableView cellForRowAtIndexPath:] returns a nil cell.
since i can not get a cell which is out of the view, it can't be checked for validation.

any advice on this problem?

Exception raised

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse constraint format: Unable to interpret '|' character, because the related view doesn't have a superview
H:|-0-[popUp]-0-|

PresentInView property retain cycle

Fixed by this pull request - #19 Reproduce bug you can by demo project:

  • Assign SKView on root View in VC.

  • Embed VC with another root VC for navigation

  • Try to push/pop. You will see that VC not deallocating

Also #17

crash when using in tableviewcell

When i use this textfield inside a table view cell app gets crash(@TextFieldValidator.m line 291) with following info

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse constraint format:
Unable to interpret '|' character, because the related view doesn't have a superview
H:|-0-[popUp]-0-|
^'
*** First throw call stack:
(
0 CoreFoundation 0x01e94946 exceptionPreprocess + 182
1 libobjc.A.dylib 0x01b1da97 objc_exception_throw + 44
2 Foundation 0x018c86ba -[NSLayoutConstraintParser failWithDescription:] + 260
3 Foundation 0x017185da -[NSLayoutConstraintParser findContainerView] + 98
4 Foundation 0x017181c3 -[NSLayoutConstraintParser finishConstraint] + 994
5 Foundation 0x01717582 -[NSLayoutConstraintParser parse] + 440
6 Foundation 0x01717166 +[NSLayoutConstraintParser constraintsWithVisualFormat:options:metrics:views:] + 105
7 Foundation 0x017170ec +[NSLayoutConstraint constraintsWithVisualFormat:options:metrics:views:] + 67
8 MindMap 0x000c5dfd -[TextFieldValidator showErrorWithMsg:] + 1581
9 MindMap 0x000c545e -[TextFieldValidator tapOnError] + 62
10 libobjc.A.dylib 0x01b337cd -[NSObject performSelector:withObject:withObject:] + 84
11 UIKit 0x004f623d -[UIApplication sendAction:to:from:forEvent:] + 99
12 UIKit 0x004f61cf -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64
13 UIKit 0x00629e86 -[UIControl sendAction:to:forEvent:] + 69
14 UIKit 0x0062a2a3 -[UIControl _sendActionsForEvents:withEvent:] + 598
15 UIKit 0x0062950d -[UIControl touchesEnded:withEvent:] + 660
16 UIKit 0x0092f7b7 _UIGestureRecognizerUpdate + 13225
17 UIKit 0x0054626b -[UIWindow _sendGesturesForEvent:] + 1356
18 UIKit 0x005470cf -[UIWindow sendEvent:] + 769
19 UIKit 0x0050c549 -[UIApplication sendEvent:] + 242
20 UIKit 0x0051c37e _UIApplicationHandleEventFromQueueEvent + 20690
21 UIKit 0x004f0b19 _UIApplicationHandleEventQueue + 2206
22 CoreFoundation 0x01db81df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 15
23 CoreFoundation 0x01dadced __CFRunLoopDoSources0 + 253
24 CoreFoundation 0x01dad248 __CFRunLoopRun + 952
25 CoreFoundation 0x01dacbcb CFRunLoopRunSpecific + 443
26 CoreFoundation 0x01dac9fb CFRunLoopRunInMode + 123
27 GraphicsServices 0x02e6924f GSEventRunModal + 192
28 GraphicsServices 0x02e6908c GSEventRun + 104
29 UIKit 0x004f48b6 UIApplicationMain + 1526
30 MindMap 0x000ccb6d main + 141
31 libdyld.dylib 0x0373dac9 start + 1
32 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Any chance you could give this a license?

If you would like lots of people to use this neat project, then a license like MIT would be a really good idea - it will stop people worrying about ownership or potential usage claims later!

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.