The following provides a convenient way to add methods to a class at runtime:
imp_implementationWithBlock((void*) objc_unretainedPointer(^(id me, BOOL selected)
The method can then be added using class_addMethod(). Will these implementations eventually become cached and use the fast-track method dispatching system?
My gut feeling would be yes, because doing otherwise would complicate the delicate, consistent, and beautiful Objective-C runtime 🙂
Also this link -> http://kevin.sb.org/2006/11/16/objective-c-caching-and-method-swizzling/
Seems pretty confident. They’re all Method’s in the Class after you call class_addMethod. As far as I can tell, please correct me if I’m wrong, there’s no way to distinguish them from ones which were compiled in.