iPad 纵向模式拆分视图 - 弹出按钮标题
我只想更改 iPad 拆分视图应用程序中以纵向模式启动 Popover 的按钮的标题(显示主视图)。我一生都无法弄清楚如何引用这个按钮。我通过使用主详细信息应用程序模板(iOS 5 和故事板)创建一个新项目来启动该应用程序,并且大部分界面代码都从故事板文件开始。任何帮助表示赞赏。
I just want to change the title in my iPad split view application of the button that initiates the Popover in portrait mode (showing the master view). I cannot, for the life of me, figure out how to reference this button. I started the application by creating a new project using the master detail application template (iOS 5 and storyboards) and most of the interface code began in the storyboard file. Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在详细视图中,您会发现分割视图的委托方法,用于在纵向模式下添加新按钮(也可能使用类似的方法 - 但它们都有 UIBarButtonItem* 参数):
就是这样 -你完成了。
Inside your detail view you'll find a delegate method of your split view wich is for adding the new button in portrait mode (there are also similar methods wich are maybe used - but they all have the UIBarButtonItem* argument):
And that's it - you're done.