jjzjj

questionLabel

全部标签

ios - 为什么 UILabel 没有初始化?

代码来自斯坦福CS193p。我添加了一个NSLog来检查它。标签似乎没有被初始化。有什么想法吗?@interfaceAskerViewController()@property(weak,nonatomic)IBOutletUILabel*questionLabel;@property(weak,nonatomic)NSString*question;@end@implementationAskerViewController@synthesizequestionLabel=_questionLabel;@synthesizequestion=_question;-(void)setQ