title: Is there a way to reflectively call a function in Objective-C from a string?
body: <p>Are there any Objective-C runtime functions that will allow me to get a function (or block) pointer from a string identifying the function? I need some way to dynamically find and invoke a function or static method based on some form of string identifying it.</p>
  
  <p>Ideally this function should be able to exist in any dynamically loaded library.</p>
  
  <p>Looking at <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html" rel="nofollow">Objective-C Runtime Reference</a>, the best bet looks like <code>class_getClassMethod</code>, but there don't appear to be any function-related functions in this reference. Are there other raw C ways of getting a pointer to a function by name?</p>