Working with NSDates and calendrical calculations can sometimes be a pain. Adding days, subtracting months, and adjusting today’s date to midnight. Today’s we’ll take a look at several way to simplify the process and abstract the logic away into some neat category methods.
Probably one of the most useful methods to have in a category on an
NSArray is this method. It allows you easily and safely grab the first element of the array. This makes for a great counterpart to the already existing method