views:

81

answers:

1

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;

A: 

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