0

我正在玩 IwUI RSS sdk 示例。我进行了更改,将链接标签添加到提要页面(第 2 页)。我通过复制描述 CIwUILabel 块并将其重命名为“linkLabel”来进行此更改,并相应地将其作为元素添加到标题元素下方的 CIwUIElement“标签”。这在 x86 marmalade 模拟器、GCC ARM Debug 模拟器中运行良好。

但是当我把它带到黑莓设备上时,它会因错误而中断 - “元素'没有名为'linkLabel'的子元素。为什么它说元素''?

这是否意味着我在 IwUIItems.ui 中的编辑没有进入设备构建?

4

2 回答 2

0

我猜您的更改没有包含在 .bin 文件中。.group 文件或 .ui 文件不包含在 GCC 构建中,您需要相应的 .bin 文件,您将在 x86 模拟器中加载 .group 文件后获得该文件。

只需删除 data-ram 文件夹,清理项目,重新运行 x86 模拟器,确保 UI.group 在退出之前加载。

您甚至可以选择删除 VS 项目文件夹以获得完全干净的构建。双击 mkb 将再次重新创建项目。

于 2013-09-09T19:50:23.903 回答
0

If anybody stumbles on this, please find the details below - As @Creator said, my changes did not get into the deployment package but the reason it was running fine in the Marmalade simulator does not allow to believe this. The reason was that the changes were getting in the .bin file correctly. But the deploy tool was looking for that file in data folder. There was an old file available and that was getting into my deployment package.

So I have to copy .group.bin file from data-ram\data-gles1 to data folder after running the application in x86 debug mode. Then build the deployment package for BlackBerry 10

For WP8, we have to copy .group.bin file form data-ram\gles2-dx11 to data folder.

于 2013-09-10T17:56:30.140 回答