Latest 1.1.0
Homepage https://github.com/teffi/SMTUtilities
License MIT
Platforms ios 7.0, requires ARC
Authors

If you’re tired or bored on creating validation methods for your textfields then SMTUtilities will be of great help.

SMTUtilities is an objective-c utility class for textfield validations.Each methods returns a BOOL value.

Version

1.1.0

METHODS

Empty fields
+(BOOL)isEmpty:(UITextField *)field;
Numerical Fields
+(BOOL)isNumeric: (UITextField *)field;
Letter Fields
+(BOOL)isAlphabets:(UITextField *)field;
Email Fields
+(BOOL)isValidEmail:(UITextField *)field;
iPhone4 Screen check
+(BOOL)isiPhone4;
iPhone6 Screen check
+(BOOL)isiPhone6;
iOS8 version check
+(BOOL)isiOS8;
iOS7 version check
+(BOOL)isiOS7;
White spaces trimming
+(NSString *)trimWhiteSpaces:(NSString *)str;

Change Log – v1.1.0

New Methods

  • iphone 4/6 screen checks
  • iOS 7 and 8 version checks
  • String trimming whitespaces.

Next Steps

  • Add other common validations
  • Create Swift counterpart

License

MIT

Latest podspec

{
    "name": "SMTUtilities",
    "version": "1.1.0",
    "summary": "SMTUtilities is an objective-c utility class for textfield validations.",
    "homepage": "https://github.com/teffi/SMTUtilities",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Steffi": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/teffi/SMTUtilities.git",
        "tag": "1.1.0"
    },
    "source_files": "SMTUtilitiesDemo/SMTUtilitiesDemo/SMTUtilities/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This