I have a popover view which is called with:
Info *infoview = [[Info alloc]init];
pop = [[UIPopoverController alloc]initWithContentViewController:infoview];
[pop setDelegate:self];
[pop presentPopoverFromRect:CGRectMake(-60, 30, 400, 400) inView:bigMenuView permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
[infoview release];
In this popoverview is (see in the code) an info.xib which has some UIBUttons.
Now I want to change something. in my “mainview” after I click on the Button.
Note: I can access my IBAction Method in the “First Responder” but the is no action.
In order to do what you want, declare a property on the button in
Info, something like :Now synthesize it, in implementation part. In order for the button to send the correct action to the correct target, you should do like :
I supposed that the main view is
bigMenuView.This will make the button sending a
theSELYouWantmessage tobigMenuVieweach time it is touched.