使用Runtime特性,打印成员变量以及他们的strong和weak属性(不是属性的,是成员变量的,比如Person的lastname)。
比如Person类
#import <Foundation/Foundation.h>
@interface Person : NSObject
{
@public
__weak NSString *lastName;
NSString *fristName;
int age;
}
@property (nonatomic,strong) NSString *teacher;
@property(nonatomic,weak)NSString *student;
@end