#import <UIKit/UIKit.h>
#import "AppDelegate.h"

@interface A : NSObject

@end

@implementation A


@end


@interface AA : A

@end

@implementation AA


@end

@interface B : NSObject

@end

@implementation B


@end


int main(int argc, char * argv[]) {
    A *a=[[A alloc]init];
    NSLog(@"%d",[a isKindOfClass:[B class ] ]);//返回值1表示是这个类型,0不是这个类型
}

 

相关文章:

  • 2022-02-01
  • 2022-01-09
  • 2021-05-29
  • 2021-06-29
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-11-09
  • 2021-07-03
  • 2022-03-01
相关资源
相似解决方案