如何在iPhone应用程序设置中显示信息文本? [英] How to display info text in iphone application settings?

查看:141
本文介绍了如何在iPhone应用程序设置中显示信息文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以像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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆