English 中文(简体)
在设置中指定不可编辑的字符串。 bundle 吗?
原标题:Specifying non-editable string in settings.bundle?

我注意到有些应用程序将条目添加到设置中. bundule, 仅代表固定/ 非编辑字符串 。

""https://i.sstatic.net/QNezB.png" alt="此处输入图像描述"/ >

我只在列表中看到这些, 唯一接近的是“ 文本字段” 但这是可以编辑的。

""https://i.sstatic.net/k5HPX.png" alt="此处输入图像描述"/ >

有办法在根. 列表中指定吗?

最佳回答

而不是选择文本字段使用标题

问题回答

事实上,您必须使用标题而不是文本字段,更具体地说,以便生成您提到的示例,使用以下提示:

  • In settings bundle under Root.plist add a new type title
  • Set title value to "Version"
  • In the same item add a new row and set this to Default value
  • Set Default Value to "1.1.1"

这将产生一个不可编辑的文本字段, 左侧为标题值, 右侧为默认值 。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签