Video Tutorial: Objective-C Categories

Learn about a very cool feature in Objective-C called categories, which allow you to extend classes with additional methods at runtime. By Ray Wenderlich.

Leave a rating/review
Save for later


Hide contents

Video Tutorial: Objective-C Categories

0 mins


Your challenge is to add a new category to add a new method to DateCalculator:

- (float)minAgeToDate;

This method should return the minimum age that “he” should date based on hisAge.

Also, add some code to test this new method in AppDelegate.m.

Download demo code

Download challenge solution

Helpful links


Over 300 content creators. Join our team.