Calling function from popover.
Posted
by user288225
on Stack Overflow
See other posts from Stack Overflow
or by user288225
Published on 2010-03-17T21:19:21Z
Indexed on
2010/03/17
21:21 UTC
Read the original article
Hit count: 397
Alright, so I made a popover from my main view and all that good stuff. But I want to have my popover call an action in my main view when a button within the popover is pressed.
MainView *mainView = [[MainView alloc] initWithNibName:@"MainView" bundle:nil];
[mainView doStuff];
The "dostuff" function changes some elements within the view. For example, the color of the toolbar is supposed to be changed. I've put a print command and the print command executes. But for some reason, the toolbar won't change color.
- I've imported the header of MainView into the popover.
- I did an @class thingy for MainView in my popover.
- doStuff is declared in MainView's header.
- The IBOutlets are declared too, and connected.
Any ideas?
© Stack Overflow or respective owner