Search code examples
iphoneios5xcode4.2nsuserdefaultsuipopovercontroller

Iphone: View will appear method does not calls when using popover controller


I am using a pop over controller in a view that contains table view. The image is as below:

enter image description here

Each index take me to its view and that view contains radio button for single selection.Image:

enter image description here

Now i am not able to get the value to my main view which contains the popover because the popover is not dismissed and i ma not able to call the view will appear method for the main view.

how can i pass the value of option selected in the textview of main view.

Thanx in advance !


Solution

  • If the popover delegate is set to the popover controller the implement - (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController

    and from there call a method on the mainviewcontroller to set whatever you want to set.