开发者

combining flipsideview and navigationview

开发者 https://www.devze.com 2022-12-12 05:40 出处:网络
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 =

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 = s开发者_如何学Pythonelf;


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消