我想用intel XDK构建一个基于web的Android应用程序!我尝试但输出apk文件太大,我的文件总计2.4MB但输出是15.6Mb!我该怎么办 ?
我正在使用Ionic + Angular + Apache Cordova 4.0使用Visual Studio 2003更新4对A Hybrid Mobile应用程序进行原型设计.我安装了SQLite插件来访问数据库.
访问此插件的推荐方法是:
var db = window.sqlitePlugin.openDatabase({name: "my.db"});
Run Code Online (Sandbox Code Playgroud)
但我没有插件的打字稿定义 - 只有Cordova.SO Typescript不知道sqlitePLugin及其抱怨它.
如何从Typescript代码访问Cordova插件?我明白我必须以某种方式扩展基本的"窗口"对象?怎么做 ?
谢谢.
我试图在SKSpriteNode上运行一系列SKActions,它有一个子节点,所有动作都在2个形状上执行,除了:
[SKAction resizeToWidth:<#(CGFloat)#> height:<#(CGFloat)#> duration:<#(NSTimeInterval)#>]
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
-(void)CreateCards{
for (int i=0; i<3; i++) {
SKSpriteNode *sprite=[SKSpriteNode spriteNodeWithImageNamed:@"default_circle.png"];
SKSpriteNode *shape=[SKSpriteNode spriteNodeWithImageNamed:[self GetRandomImage]];
[sprite addChild:shape];
sprite.position=CGPointMake(-43, 345);
sprite.size=CGSizeMake(43, 43);
shape.size=CGSizeMake(43, 43);
SKAction *zoom=[SKAction group:[NSArray arrayWithObjects:[SKAction moveTo:CGPointMake(60, 345) duration:0.75],[SKAction resizeToWidth:80 height:80 duration:0.75], nil]];
zoom.timingMode=SKActionTimingEaseOut;
SKAction *zoomOut=[SKAction group:[NSArray arrayWithObjects:[SKAction moveTo:[self GetLocationOfIndex:i NumberOfCircles:3] duration:0.5],[SKAction resizeToWidth:43 height:43 duration:0.5], nil]];
zoomOut.timingMode=SKActionTimingEaseIn;
SKAction *enter=[SKAction sequence:[NSArray arrayWithObjects:[SKAction waitForDuration:1*i],zoom,zoomOut, nil]];
[sprite runAction:enter];
[self addChild:sprite];
}
Run Code Online (Sandbox Code Playgroud)
}
我只需要知道我是否需要相同的框架来开发适用于Windows 8 for Tablets(Windows RT)和PC的应用程序,或者平板电脑仍然使用.NET紧凑框架.
windows .net-framework-version tablet windows-8 windows-runtime
android ×1
apk ×1
cordova ×1
intel-xdk ×1
ios ×1
objective-c ×1
output ×1
skaction ×1
skspritenode ×1
sprite-kit ×1
tablet ×1
typescript ×1
windows ×1
windows-8 ×1