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

Bart van Zon

2pods

NSDate+RelativeTime

NSDate+RelativeTime

NSDate+RelativeTime is an NSDate category to generate relative time (or fuzzy time) strings from dates. NSDate's are parsed to strings like for example 'Now', 'A day ago' or '3 months from now'. NSDate+RelativeTime seperates itself from other alike categories in the fact that it handles not only past dates but future dates as well.

Usage

  • Import NSDate+RelativeTime.h into the class.
  • Call the relativeTime method on an NSDate to get the relative time.

Tests

The tests are in NSDate+RelativeTimeTests.m and require Kiwi to run.

License: MIT

  • Objective C

NSURL+Gravatar

NSURL+Gravatar

NSURL+Gravatar is a NSURL category to generate Gravatar URLs.

Usage

  • Add the files to your project manually or via Cocoapods (pod 'NSURL+Gravatar', '~> 1.0')
  • Import NSURL+Gravatar.h into the class.
  • Call the URLWithGravatarEmail size method on a NSURL to get the Gravatar URL: [NSURL URLWithGravatarEmail: @"[email protected]" size:100].

License: MIT

  • Objective C