可以调用,在hello.h里@property(nonatomic,strong)NSString *myStr;在hello.m里@synthesize myStr;然后再swift文件里加var h = hello()h.myStr = "hello"//这里可以设置到h.sayHello()