举例: 首先定义TestModel如下: @interface TestModel : NSObject @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *desc; @property (nonatomic, assign) int age; @end 然后在viewControl中viewDidLoad中添加如下代码 TestModel *model = [[TestMo…