创建一个新的类B然后在里面声明就行
.h文件如下
#import
@interface CBTestController : UIViewController
/**
创建string类型
/
@property(nonatomic,strong)NSString customString;
/**
创建可变数组(list)
/
@property(nonatomic,strong)NSMutableArray customMutableArray;
/**
创建 float类型
*/
@property(nonatomic,assign)float f;
@end