我正在尝试在按下按钮时从弹出窗口向另一个viewcontroller发送消息。
问题是:当我点击按钮时,视图控制器中没有任何变化。
当按下按钮时,弹出按钮不会错过。
这是我的IBAction:
- (IBAction)sendFirstInformation:(id)sender {
PlywoodViewController *PL1 = [self.storyboard instantiateViewControllerWithIdentifier:@"Plywood"];
PL1.receiverLabel.text = @"TESTE";
PL1.receiverLabel.textColor = [UIColor blackColor];
NSLog(@"It was pressed");
}
NSLog工作正常,但UILabel(receiverLabel)在PL1上没有变化。
有什么想法吗? 我是否必须在viewcontroller的类上实现任何内容,或者它是popover IBAction中的问题?
P.S。:它们都是作为UIViewControllers创建的,所以我猜弹出窗口的方法不起作用(或者不是,我真的不知道大声笑)。