次のように作成されたViewControllerインスタンスがありますinstantiateViewControllerWithIdentifier
。
TBSCTestController* testController = [self.storyboard instantiateViewControllerWithIdentifier: @"OTP"];
TBSCTestController
ストーリーボードのラベルに接続されているという名前のIBOutlet
プロパティがあります。label
label
このコードを使用するテキストを変更したいのですが、何も変更されません。
testController.label.text = @"newText";
[self.view addSubview: testController.view];
はtestController
有効なインスタンスですが、label
はnilです。私は何を取りこぼしたか?