CocoaPods trunk is moving to be read-only. Read more on the blog, there are 16 months to go.

SMTUtilities 1.1.0

SMTUtilities 1.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2015

Maintained by “Steffi”.



  • By
  • Steffi

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