ZipCodeRule
public class ZipCodeRule: RegexRule
ZipCodeRule is a subclass of RegexRule that represents how zip codes are to be validated.
-
Initializes a
ZipCodeRuleobject.Declaration
Swift
public convenience init(message : String = "Enter a valid 5 digit zipcode")Parameters
messageString that holds error message.
Return Value
An initialized object, or nil if an object could not be created for some reason that would not result in an exception.
ZipCodeRule Class Reference