How to display info text in iphone application settings?

匿名 (未验证) 提交于 2019-12-03 10:24:21

问题:

I wonder if it is possible to have a button in application settings just like the facebook app has:

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?

回答1:

Ok, let's look to below images:

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 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).


It is a content for NewInfo.plist



回答2:

Add new item to Root.plist in Settings.bundle. Then set type to Group and write your text in the Title field.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!