ios - UITextField validations -


hi beginner in ios in project crating 1 registration page , there have provide validations textfields best level , have searched many textfield validations tutorials did not correct 1

according requirement when clicked on textfield if there error need show alert message on textfields below screen have written many custom methods not working please me one

enter image description here

you have make custom view validate textfields

you can try https://github.com/ustwo/us2formvalidator

code in reference objective-c

us2validatortextfield *firstnametextfield  = [[us2validatortextfield alloc] init]; firstnametextfield.validator               = [[[myprojectvalidatorname alloc] init] autorelease]; firstnametextfield.shouldallowviolation    = yes; firstnametextfield.validateonfocuslossonly = yes; firstnametextfield.placeholder             = @"enter first name"; firstnametextfield.validatoruidelegate     = self; [_textuicollection addobject:firstnametextfield]; [firstnametextfield release]; 

hope helps you.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -