我想构建一个iOS模块,其中我有一个带有.xib文件的viewController类.现在的问题是如何从我的钛代码中调用该视图.我知道有可用的视图代理,但由于文档不太好而不知道如何使用它们.
到目前为止我已经创建了一个可以传递非图形数据的模块,但是从我的模块中获取View控制器呢.
我已经检查了appcelerator wiki,但这没有用.任何指导我的教程都会有所帮助
titanium appcelerator appcelerator-mobile titanium-modules titanium-mobile
这让我发疯,我花了大约10个小时现在删除并重新生成我的Appcelerator Titanium iPad应用程序的Apple密钥和配置文件.我在1年前全部工作和编译,然后我的Mac崩溃了,我不得不重新格式化并重新开始.
我无法理解这个错误:"代码签名错误:找不到与您的构建设置('Okland Construction 2014')中指定的配置文件匹配的代码签名标识(即证书和私钥对)."
在Apple开发人员中心,我创建了必要的分发配置文件,并将其安装在我的钥匙串中,但我总是收到此错误.
我只是不知道遗失或错误的是什么.
我已阅读此内容并按照说明操作,但无济于事:
我希望有人能在我失去理智之前提供帮助.10个小时,100次尝试,重启,删除,再生.
我有一个图像视图,当图像加载我想做一个动作,例如一个alert.I正在使用eventListener方法来实现这一点.这是我的代码
imageView.addEventListener('load', function()
{
alert(1);
});
Run Code Online (Sandbox Code Playgroud)
这与iphone工作得很好,但没有用android解雇任何东西,怎么能在android内实现这个?非常感谢.
android event-listener imageview appcelerator-mobile titanium-mobile
是否在Android中有任何LocalNotification.(有些东西类似于Titanium.App.iOS.scheduleLocalNotification)
即使我的应用程序关闭,我也需要Android平台的一些简单通知(如警报).Titanium有可能吗?
android titanium appcelerator push-notification appcelerator-mobile
我正在尝试在我的Titanium App for Android平台中创建日历事件.为此我使用下面的代码,它没有给出任何错误也没有创建任何日历事件
var calendars = Ti.Android.Calendar.selectableCalendars;
var names =[];
for (var i = 0; i<calendars.length; i++) {
names.push(calendars[i].name);
}
var calendarDialog = Titanium.UI.createOptionDialog({
title: 'Select a Calendar',
options: names,
cancel:1
});
calendarDialog.addEventListener('click', function(e){
var ci = e.index+1;
var calendar = Ti.Android.Calendar.getCalendarById(ci);
var eventBegins = new Date(2011, 12, 26, 12, 0, 0);
var eventEnds = new Date(2011, 12, 26, 14, 0, 0);
var hasReminder = true;
var details = {
title: 'i m testing',
description: 'message',
begin: eventBegins,
end: …Run Code Online (Sandbox Code Playgroud) android titanium appcelerator appcelerator-mobile titanium-mobile
我有一个2013 Retina MacBook pro,并对XCode的构建速度感到惊讶.我可以在大约2-3秒内在模拟器中构建并运行一个相当大的Objective-C应用程序.
在为iPhone制作和运行较小的Titanium App时,我想知道为什么需要大约15秒.在控制台中,构建过程非常快,但应用程序在"调用xcodebuild"上挂起大约10秒钟
$ titanium build -p ios
Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.0.2.v20130206164716
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] Build type: development
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 6.1
[INFO] Building for iOS iPhone Simulator: 6.1
[INFO] Building for device family: iphone
[INFO] Minimum iOS version: 4.3
[INFO] Debugging disabled
[INFO] Initiating prepare phase
[INFO] Copying custom Info.plist from project …Run Code Online (Sandbox Code Playgroud) 我即将开始一个新的Titanium项目.到目前为止,我所写的是现在被认为是"经典项目"(我在合金之前就开始编写Titanium应用程序)了.
我想知道在为我的新项目切换到Alloy时是否值得.我知道基本上,在编译到java项目或objective-c项目之前,Alloy编译为"Classic"Titanium代码.我也知道"预编译"过程中的一大优势,即在合金代码中标记仅与Android或iPhone相关且在编译的"经典"代码中不包括其他代码.
我主要担心的是灵活性 - 就像"经典"一样,我觉得我对代码有更多的控制权以及正在发生的事情.
第二个问题,我有控制(如开源滑动菜单),不是为合金编写的 - 我怎样才能将它们作为我项目的一部分?
我发现(在TiConf 2014中引入)TI UX(https://github.com/jaraen/Ti.UX.Templates)是为Alloy编写的,我开始要求自己使用Alloy.
其他几个问题:
谢谢
titanium appcelerator appcelerator-mobile titanium-mobile titanium-alloy
我开发了原生Android应用程序,现在要求开发的应用程序需要在Xamarin或Titanium Appcelerator等跨平台上,现在请一些专家软件工程师建议我应该选择哪个跨平台?为什么?如果我选择Xamarin那么Xamarin的优点和缺点是什么?如果我选择Titanium Appcelerator那么钛的优点和缺点是什么?任何帮助将受到高度赞赏.
我是钛的新手,想从我的钛应用程序中调用一个Web服务.webService返回json响应.因为我知道调用webService使用XMLRPC但非常混淆json.
到现在为止,我知道我们必须创造HTTPClient.
var request = Titanium.Network.createHTTPClient();
request.open("POST", "http://test.com/services/json");
request.onload = function() {
var content = JSON.parse(this.responseText);//in the content i have the response data
};
request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); //did not understand this line
request.send();
Run Code Online (Sandbox Code Playgroud)
现在问题是如果我的url(端点)有许多WebServices,那么我将给出方法名称,即要调用的WS名称.
从钛移动的API文档的功能open,即request.open接受3个参数:
方法名称(http方法名称)
请求的网址
async(boolean property)默认为true.
在上面的代码那里"POST"做什么?如果我的WS名称,system.connect那么我将在代码中提到它?
如果WS需要参数,那么我们如何将参数发送到上面代码的webService.
我知道request.send()可以用来发送参数但是如何?
javascript titanium appcelerator appcelerator-mobile titanium-mobile
我需要删除文本字段的边框.Titanium Text字段的默认边框样式为Titanium.UI.INPUT_BORDERSTYLE_NONE.但它仅默认为iPhone.我也转过了borderColor = 'white',这是我的backgroundColor.但是不起作用.有解决方案吗