如何在iPhone应用程序设置中显示信息文本? [英] How to display info text in iphone application settings?
问题描述
我想知道是否可以像Facebook应用程序一样在应用程序设置中包含一个按钮:
I wonder if it is possible to have a button in application settings just like the facebook app has:
如您所见,有一个Info
条目.我知道我可以使用多值说明符来实现这一点,但是它需要一些值,而不仅仅是文本:
As you see there is an Info
entry. I know I can achieve this with the multi value specifier but it requires some values and not just text:
因此,当您点击信息"时,它会打开一个只有长标题元素的视图.
So when you tap on Info it opens a view that has just a long title element.
有什么想法可以实现这一目标吗?
Any ideas how to achieve this?
推荐答案
好,让我们看一下下面的图像:
Ok, let's look to below images:
这是Setting.bundle中的Root.plist.这是Item5(称为标题"的组)和Item6(称为"Hello"的按钮).注意记录Filename
和值NewInfo.
This is a Root.plist in Setting.bundle. Here are Item5 - Group called 'Title' and Item6 - button called 'Hello'. Notice to the record Filename
and value NewInfo.
NewInfo是一个新的.plist
文件,应将其放入Settings.bundle中.在Xcode中,右键单击Setting.bundle-> Show在Finder中->右键单击Setting.bundle-> Show Package Content->复制/粘贴以创建新项目(重命名,然后删除所有不必要的行).
NewInfo is a new .plist
file which you should place into Settings.bundle. In Xcode right mouse click on Setting.bundle->Show In Finder->right mouse click on Setting.bundle->Show Package Content->Copy/Past for create new item(rename after, remove all unnecessary rows).
这是NewInfo.plist的内容
It is a content for NewInfo.plist
这篇关于如何在iPhone应用程序设置中显示信息文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!