recipe 1.9. Invoking the Selectors of an Object Dynamically
1.9.1. Problem
You want to be able to dynamically call any method
in any object given the name of the method and its
parameters.
1.9.2. Solution
Use the NSInvocation class,
like so:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial