Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group Group

Video Tutorial: Objective-C Runtime

Learn about how the Objective-C runtime works: from introspection to message passing.

Challenge

Your challenge is add some code to programmatically log out the methods of DateCalculator.

Hint: To do this, you will need to use class_copyMethodList and method_getName.

Download demo code

Download challenge solution

Helpful links

Errata

  • At around 12:14 I say “and what this means is that you’re trying to call a method on an object that doesn’t exist.” That sentence is a little ambiguous – what I mean is you’re trying to call a method that doesn’t exist on an object.

Contributors

Comments

Create your free learning account today!

With a free raywenderlich.com account, you can download source code from our tutorials, track your progress, personalize your learner profile, participate in open discussion forums and more!