@interface PaneBean : NSObject
@property(nonatomic,copy) NSString *name;
@property(nonatomic,copy) NSString *type;
@property(nonatomic,assign) NSInteger width;
@end
我有一个如上所示的 PaneBean。
我应该使用@property(nonatomic,copy)还是@property(nonatomic,strong)为我的(NSString *) name? 它们之间有什么区别?
为 NSInteger 写“分配”是否正确?
任何帮助表示赞赏。在此先感谢!