Probably a simple question but I have not found a solution. I have several view controllers with some sliders when drag, Input number one label I also have to enter a simple popup keypad number in the same label. I have created a visual controller called the keypad and when I tap one button on the current view controller, I do this:
- (IBAction) Call clip: (ID) sender {keypad * Keypad controller = [[Keypad Alloc] initWithNibName: @ "keypad" bundle: zero]; Self.keypadViewController = Keypad controller; [Self.view addSubview: keypadController.view]; [Keypad controller release];
The keypad comes with a current view controller that appears in the background. When I tap the numbers on the keypad, I want the results to be shown instantly in the current view controller. I think what I'm trying to do, a visual controller sends its output to a second view controller.
Thanks for any help.
You have a lot of options.
- Like alexers aces, you can use a representative and a protocol.
- Another option is NSNotificationCenter, which allows you to send messages in any other category which is a registered interest.
- See your 'ownership' of the easiest / most options and pass in the subview in your own view and make a subvol cALL, if necessary update the updated method.
Comments
Post a Comment