Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.01 KB

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.