- (void)demoSubclass{ int numClasses; Class *classes = NULL; numClasses = objc_getClassList(NULL,0); if (numClasses >0 ) { classes = (__unsafe_unretained Class *)malloc(sizeof(Class) * numClasses); numClasses = objc_getClassList(classes, numClasses); for (int i = 0; i < numClasses; i++) { if (class_getSuperclass(classes[i]) == [FDBaseData class]){ NSLog(@"FS: %@", NSStringFromClass(classes[i])); } } free(classes); }}