我想知道我编程的方式是否正确。你能帮助我吗?
@interface ViewController : UIViewController
{
UILabel *messageLabel;
}
@end
当我在 .h 中声明新对象并在 .mi 中创建时必须使用@property (nonatomic, retain) UILabel *messageLabel
?我看到很少有代码创建对象时@property
不存在的列表,并且很少存在确实存在的列表,我很困惑。
当我通过代码创建对象时不使用@property(例如 for UILabel
, UIImageView
, )是否正确?UIButton