嵌入iBook时,为什么有些小部件元素没有显示? [英] Why are some widget elements not showing up when embedded in iBook?

查看:199
本文介绍了嵌入iBook时,为什么有些小部件元素没有显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Dashcode中创建了一个小部件。它有一些按钮,文本字段和文本。从Dashcode运行或安装到仪表板时,它可以正常工作。当我将它安装到iBook(通过iBooks Author)并在iPad上运行时,按钮和文本都会消失(以及一些其他轻微的视觉变化)。有趣的是,如果我点击某些按钮的位置,它会调用按钮点击事件,但其他按钮不起作用。此外,当按钮单击事件更新文本的值时,该文本将变为可见。

I created a widget in Dashcode. It has some buttons, text fields and texts. It works fine when run from Dashcode or when installed into the Dashboard. When I install it into an iBook (via iBooks Author) and run it on the iPad then the buttons and texts all disappear (as well as a few other minor visual changes). Interestingly if I tap where some of buttons are, it invokes the button click event, but others don't work. Also, when a button click event updates the value of a text then that text becomes visible.

我尝试了GlassButtons和常规按钮,两者都没有显示。我检查了工作按钮的属性与不工作的按钮的属性,它们似乎是相同的(超出id和值)。

I tried both GlassButtons and regular Buttons, neither shows up. I inspected the properties of the buttons that work vs those that don't and they seem to be the same (beyond id and value).

这是它的截图在Mac上运行:

Here is a screenshot of it running on the Mac:

以下是我在iPad上运行iBooks的屏幕截图:

Here is a screenshot of it running in iBooks on my iPad:

注意8文本的位置价值已更新。当您点击正确的位置时,连接和更新按钮会起作用,但其他按钮都不起作用。

Notice the 8 where a text's value was updated. The connect and update buttons work when you tap in the right spot, but none of the others work.

作为旁注,此小组件正在连接到Web服务网络使用 RemObjects SDK for JavaScript ,这真的很酷。如果我可以让按钮显示,网络服务就可以工作。

As a side note, this widget is connecting to a web service over the network using RemObjects SDK for JavaScript, which is really cool. The web service works, if I can just get the buttons to show up.

更新:我更换了< ; div> 标记Dashcode用于具有实际HTML < input type =button> 的按钮,并显示在我订了。文字仍未显示。它也是< div>

Update: I replaced the <div> tag which Dashcode uses for a button with an actual HTML <input type="button"> and that shows up in the iBook. Text still doesn't show up. It is also a <div>.

推荐答案

我认为它出。保存小部件时,需要使用最小的Mac OS X版本10.4.0保存,该版本被视为向后兼容。默认(至少在我的安装上)是10.4.3。不同之处在于,当它向后保存时,会包含用于呈现按钮和文本的库。为什么需要特殊的库来呈现文本就超出了我的范围。

I figured it out. When saving the widget it needs to be saved with a minimum Mac OS X version of 10.4.0 which is considered "Backwards-compatible". The default (at least on my install) was 10.4.3. The difference is that when it is saved backwards-compatible then the libraries are included that render the buttons and the text. Why it needs special libraries to render text is beyond me.

但需要注意的是,文本位置在iBooks中运行时会有点混乱。我不认为Apple在发布之前完成了iBooks Author和iBooks 2.

One note though is the text position gets messed up a bit when it runs in iBooks. I don't think Apple finished iBooks Author and iBooks 2 before they released it.

这篇关于嵌入iBook时,为什么有些小部件元素没有显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆