/ObjCHelpers

ObjectiveC helper categories and classes for cross-project use

Primary LanguageObjective-CMIT LicenseMIT

ObjCHelpers

ObjectiveC helper categories and classes for cross-project use.

UIImage helper methods

+ (UIImage *) imageWithColor :(UIColor *)pColor;

NSDate helper methods

+ (NSDate *) stringToDate :(NSString *)pString;
+ (NSDate*) JSONStringToDate :(NSString*)pJSONdateString;
+ (NSDate *) dateWithoutTime :(NSDate *)pDate;
+ (NSDate *) dateWithLastSecond :(NSDate *)pDate;
- (NSString *) stringValue;
- (int) daysFromDate :(NSDate *)pDate;
- (int) getSecond;
- (int) getMinute;
- (int) getHour;
- (int) getDay;
- (int) getMonth;
- (int) getYear;

Use

Add needed helper classes from Classes folder to your app target.

Add test classes for helpers you are using to your unittests target (should be configured with OCHamcrest) if interested.

Creators

Jurgis Kirsakmens
@xjki

License

Use at your own risk. No need to give credit in your app - no one reads this stuff anyway. The license is otherwise MIT standard.