我是 IOS 新手,在学习了许多在线教程之后,我遇到了这样一种情况,即ViewControllerClass 的属性被放在@interface. 一些 UI 属性被放置@properties在 内以及 内@interface,而一些只是在后者内。
@interface ViewController : UIViewController
{
NSMutableArray *array;
NSString *string;
}
@property (strong, nonatomic) NSMutableArray *array;
@property (strong, nonatomic) NSString *string;
@property (strong, nonatomic) NSDate *date;
@end
中的属性@interface与私有属性相同还是其他?