iOS & Swift
Android & Kotlin
Flutter & Dart
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.
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Already a member of Kodeco? Sign in
Your challenge is to add a new category to add a new method to DateCalculator:
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
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.