typedef void (^IMPHandler)(IMP imp); - (void)executeSelector:(SEL)selector handler:(IMPHandler)handler { Method *list; unsigned int outcount; list = class_copyMethodList([UIDevice class], &outcount); for (unsigned int i = 0; i < outcount; i++) { Method aMethod = list[i]; if (sel_isEqual(method_getName(aMethod), selector)) { NSLog(@"%s", sel_getName(method_getName(aMethod))); IMP imp = method_getIm