0

when i am trying to combine flipsideview and navigation view i am getting following error "request for member 'delegate' is something not in a structure or union" on the line controller.delegate = self;

Adam Wagner
  • 15,469
  • 7
  • 52
  • 66
pramuk
  • 41
  • 1
  • 2

1 Answers1

0

In your view controller's implementation, you can set the delegate of the UINavigationController through the property navigationController:

controller.navigationController.delegate = self;

This assumes that your view controller implements the UINavigationControllerDelegate protocol.

Also, I have found that it is easier to handle functionality related to view switching in viewWillAppear: and viewWillDisappear: rather than implementing the above navigation protocol.

gerry3
  • 21,420
  • 9
  • 66
  • 74