gpt4 book ai didi

iphone - 如何获取 nscoder 的 key

转载 作者:搜寻专家 更新时间:2023-10-30 19:49:22 26 4
gpt4 key购买 nike

有没有办法获取已编码 Storyboard文件的 NSCoder 中使用的 key ?我看到 PSTCollectionView 使用了很多未记录的 key ,他们是如何获得这些 key 的?

具体来说,我希望在 IB 中设置 UITableViewController 时使用的键自动使用 UIRefreshControl。

最佳答案

XIB(XML Interface Builder)是以 XML 创建的文件。

您可以使用文本编辑器或写字板打开它。这样,问题就解决了一半!!!

读取xib/nib文件的xml并解析。从那里读取所有 key 。

MainMenu.xib 的片段

<?xml version="1.0" encoding="UTF-8"?> <archive 
type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data> <int key="IBDocument.SystemTarget">1080</int>
<string key="IBDocument.SystemVersion">11D50</string>
<string key="IBDocument.InterfaceBuilderVersion">2457</string>
<string key="IBDocument.AppKitVersion">1138.32</string>
<string key="IBDocument.HIToolboxVersion">568.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2457</string>
</object>

关于iphone - 如何获取 nscoder 的 key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15225015/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com