1
我想在xcode中寫我的第一個你好世界。我有兩個標籤,在我看來兩個按鈕,我的AppDelegate.h文件是這樣的:參考插座沒有出現在xcode 6
@interface QuizAppDelegate : NSObject <UIApplicationDelegate>
{
int currentQuestionIndex;
// The model objects
NSMutableArray *questions;
NSMutableArray *answers;
// The view objects
IBOutlet UILabel *questionField;
IBOutlet UILabel *answerField;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
- (IBAction)showQuestion:(id)sender;
- (IBAction)showAnswer:(id)sender;
@end
現在我想在此提及我的標籤。我去LaunchScreen.xib並右鍵單擊標籤。根據教程,我必須在「Outlets」選項卡下看到「answerField」和「questionField」,但沒有任何顯示。誰能告訴我爲什麼會發生這種情況?
感謝