objective-cpropertiesuipopovercontroller

Why does popover-controller give a property-error?


A popover-controller has been declared in an .h file. But it is giving me error on implementation.

The .h-file:

@property (nonatomic, strong)   VFImagePickerController     *imagePicker;
@property (nonatomic, strong)   UIPopoverController         *popoverController;
@property (nonatomic, strong)   UINavigationController      *targetVC;

The .m-file:
The error

What causes the error and how can I fix it?


Solution

  • Uncomment the synthesize line and remove underscore to look like this: @synthetize popoverController;

    And replace every _popoverController var name in your .m file to popoverController