结合 Flipsideview 和 navigationview
当我尝试结合 Flipsideview 和导航视图时,出现以下错误 controller.delegate = self
行上的“对成员“委托”的请求不在结构或联合中”;
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
;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在视图控制器的实现中,您可以通过属性 navigationController:
这假设您的视图控制器实现了 UINavigationControllerDelegate 协议。
另外,我发现在 viewWillAppear: 和 viewWillDisappear: 而不是实现上述导航协议。
In your view controller's implementation, you can set the delegate of the UINavigationController through the property navigationController:
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.