问题标签 [appcelerator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
4699 浏览

iphone - Appcelerator 推送通知

我想知道是否可以使用 Appcelerator 为移动设备(或至少 Android 和 iPhone)创建通用推送通知解决方案。我找到了一些关于如何使用 Appcelerator 实现 iPhone 推送的示例,但没有通用的。

有任何想法吗?或者是否有其他跨平台开发 sdk 可以解决这个问题?

0 投票
8 回答
15550 浏览

android - Appcelerator 与 Android SDK

我一直在看 appcelerator 似乎还不错!毫无疑问,appcelerator 的优势之一就是它对多平台的支持。我有兴趣在以后构建一个 android 应用程序,也许还有一个 iphone 应用程序。因此,目前支持多个平台并不重要。

如果您不考虑支持多个平台而只专注于 android 开发。appcelerator还有优势吗?它是否缺少“Android sdk”的任何功能?

(当我说“Andorid sdk”时,我的意思是使用 Eclipse 和原生 Android sdk 进行开发,如果有意义的话)

0 投票
2 回答
110 浏览

mobile - 免费发布应用并从中赚钱

我有一个想要开发和销售的移动应用程序。如果我使用 Titanium Appcelerator 创建应用程序,是否需要购买许可证或订阅才能销售我的应用程序,因为它是使用 Appcelerator 制作的?

0 投票
3 回答
5895 浏览

json - appcelerator Titan 无法解析 JSON

我是钛新手,从 mysql 导出解析 JSON 时遇到困难。json 是有效的,我对许多不成功的试验感到沮丧。为了简化代码,我把它放在下面。代码只是停下来说:[ERROR] Script Error = Unable to parse JSON string

谢谢和问候,理查德

0 投票
1 回答
1312 浏览

javascript - appcelerator 钛 -TableViewRow selectedBackgroundColor 去除圆角

如何覆盖 iPhone UI 的默认样式以在表格视图中选择一行?对于 iPhone,它是默认的蓝色,可以用 更改TableViewCellSelectionStyle,但仅限于三个选项。另一种方法是使用selectedBackgroundColor其中我可以选择任何颜色在表格的第一行和最后一行给出圆角,这是我不想要的。

目前我的解决方法是在顶部和底部添加额外的虚拟行,或者将表格宽度增加到 340 以隐藏屏幕之外的部分。有没有一种方法可以简单地去除圆角?

边界半径:0 没有效果

0 投票
1 回答
1514 浏览

javascript - Javascript inheritance problem when using prototypes - instances overwritten :(

I'm new to JavaScript programming and I am having a bit of a nightmare with inheritance. I am writing some code for Appcelerator Titanium and I have a base class called Slide2D that I wish to inherit from.

So I have placed a few functions in Slide2D's prototype. These are generally not going to be overwritten, but will be called from classes derived from Slide2D. These functions will also be called from other parts of the program. There are also various eventhandlers used to manage animation in Titanium.

If I make a couple of these slides in some calling code (using new)

all of my prototype methods point to the last Slide2D created, regardless of whether I use s or t. So 'slide2' will always be displayed, even if I'm using the s variable.

This is driving me mad - any help would be greatly appreciated.

Sorry for the length of the code but here it is:

Edit

Thanks very much for your prompt reply. I have made the changes that you recommended and that has resolved that particular problem.

However, a new issue has been introduced.

I need to call Slide2D.prototype.getView from a derived class - ExtendedSlide2D.

However, now I get the following error :

This is where I add the button to the base class's view object.

I'm sure this error just comes down to my inexperience with the language but, once again, any help would be greatly appreciated.

Once again - here is the code for ExtendedSlide2D:

0 投票
1 回答
5585 浏览

properties - 使用 Titanium Appcelerator 设置属性列表

我在 OS X 上使用最新的 Mobile SDK (1.6)。我有这段代码:

我简化了它,以便我可以向您解释问题所在。所以,我创建了一个包含几个对象的数组。然后,我根据这个数组设置一个属性,然后影响第一个对象的新值。但是当我调用显示属性时,而不是显示“它有效!” 字符串,它显示第一个“是”。

我尝试添加几行:

所以中间 var 'arr' 获取属性,设置它但不能对属性应用修改。

我错过了什么吗?

谢谢,

问候。

0 投票
1 回答
4901 浏览

android - 从 Android 模拟器访问虚拟主机

我正在开发一个简单的应用程序,它连接到在 Apache 中配置为虚拟主机的 web 服务,所以它的 URL 是 myapp.localhost

在我的开发机器(Mac OS X)中,我可以访问它,也可以从 iPhone 模拟器访问它。但是我遇到了 Android 模拟器的问题,它无法访问该 URL,因为它没有使用我的 /etc/hosts 文件来解析“myapp.localhost”域名。

由于我使用的是 Appcelerator Titanium ( appcelerator.com ),因此我无法使用“adb”将自定义主机文件注入 Android 模拟器。

我可以在我的 Mac OS X 系统中安装 DNS 服务器或类似的东西来为 Android 模拟器翻译那个虚拟主机吗?

0 投票
2 回答
345 浏览

mobile - 关于加速器钛的一个小问题?

我正计划与钛合作。

我想知道是否可以通过使用钛来消除“同源政策”。

钛有什么缺点吗?

请推荐一些跨平台..

请留下一些建议..

谢谢,

0 投票
1 回答
1112 浏览

android - 嵌套的 xhr 调用不适用于 Android

我有一个在 iPhone 上运行良好的代码,但是当它在 Android 上运行时,它忽略了一些部分。问题是我有嵌套createHTTPClient调用:

所以在上面的代码中,我找到了一个在 iPhone 上运行良好的解决方法。如你所知,同步模式不能强制(即使文档中提到可以做到)所以我使用这个方法来xhr同步调用第二个。

但为什么list2Lengthnull安卓呢?

PS:我在 OSX 下使用 Titanium SDK 1.6 工作。对于我在 Android 上的测试,我使用模拟器 (API 2.2) 和设备 (2.1update1)。

谢谢,

问候。