Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Binding 如何在Dashcode中配置从JSON数据源到弹出窗口的绑定(设计时)?_Binding_Dashcode - Fatal编程技术网

Binding 如何在Dashcode中配置从JSON数据源到弹出窗口的绑定(设计时)?

Binding 如何在Dashcode中配置从JSON数据源到弹出窗口的绑定(设计时)?,binding,dashcode,Binding,Dashcode,背景: 我有一个Apple Dashcode v3项目,其中有一个弹出按钮UI元素。我有一个引用JSON文件的数据源。数据源在设计时正确读取JSON文件,并显示包含两条记录的内容,这两条记录与JSON文件的结构相匹配 JSON文件中数组中每个记录的字段示例: 显示名称:Woodster, uid:12345 目标: 使用数据源的内容填充弹出窗口的项目。数据源提供内容,displayName和uid字段分别提供显示值和内容值 当前结果:弹出窗口中确实有两个项目良好!,但他们都被列为未知!好 - 我

背景: 我有一个Apple Dashcode v3项目,其中有一个弹出按钮UI元素。我有一个引用JSON文件的数据源。数据源在设计时正确读取JSON文件,并显示包含两条记录的内容,这两条记录与JSON文件的结构相匹配

JSON文件中数组中每个记录的字段示例: 显示名称:Woodster, uid:12345

目标: 使用数据源的内容填充弹出窗口的项目。数据源提供内容,displayName和uid字段分别提供显示值和内容值

当前结果:弹出窗口中确实有两个项目良好!,但他们都被列为未知!好

-

我想我一定是绑定了不正确的popp.display值,所以我会指出它是如何设置的,希望有人能纠正我

Popup.content[boundTo]数据源[usingKeyPath]内容

Popup.displayValue[boundTo]数据源[usingKeyPath]displayName | |*.displayName | | | content.displayName//这些都是我尝试过的,运气不好


帮忙?谢谢。

这是displayValue[boundTo]dataSource.content.displayName

我不知道为什么这以前不起作用,但现在似乎效果很好