I am trying to send a message from a popover to another viewcontroller when a button is pressed.
The problem is: When I click in the button, nothing changes in the viewcontroller.
And the popover does not miss itself when the button is pressed.
Here is my IBAction:
- (IBAction)sendFirstInformation:(id)sender {
PlywoodViewController *PL1 = [self.storyboard instantiateViewControllerWithIdentifier:@"Plywood"];
PL1.receiverLabel.text = @"TESTE";
PL1.receiverLabel.textColor = [UIColor blackColor];
NSLog(@"It was pressed");
}
The NSLog works fine, but the UILabel (receiverLabel) does not change on the PL1.
Any ideas? Do I have to implement anything on the class of the viewcontroller or is it a problem in the popover IBAction?
P.S.: Both of them were created as UIViewControllers, so I guess the methods for popovers does not work (or maybe not, I don't really know lol).