Разработка кросс-платформенных мобильных приложений с использованием Appcelerator Titanium

  • Published on
    04-Jun-2015

  • View
    601

  • Download
    4

Embed Size (px)

DESCRIPTION

Software Freedom Day, 2010

Transcript

  • - Appcelerator TitaniumSoftware Freedom Day, 2010

  • gennady@potapov.comgeneralarcade.comtermit.nametitaniumdev.rutwitter.com/termit

  • , c- -

  • Apple iOSGoogle AndroidHP/Palm WebOSNokia Symbian, MeeGoRIM BlackberryMicrosoft Windows 7 SeriesSamsung Bada

  • iPhone, iPad, iPod Touch (Objective-C)Android, Blackberry (Java)WebOS (JavaScript)Symbian (Symbian C++)Windows 7 (.NET/Silverlite)Bada (C++)MeeGo (Language Zoo)

  • UI/ ..

  • JavaScript :Apple iOSGoogle AndroidRIM Blackberry Samsung Badu Microsoft Windows 7 Series

  • - (Open Source) API

  • GeolocationSQL DatabaseSound, VideoFilesystemCamera2D, 3D AnimationAudio, Video streamingNetworkingMapsGesturesFacebook, Twitter, YQLWeb servicesAccelerometerUI elements

  • CGRect myImageRect = CGRectMake(0.0f, 0.0f, 320.0f, 109.0f);UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect];[myImage setImage:[UIImage imageNamed:@"myImage.png"]];myImage.opaque = YES;[self.view addSubview:myImage];[myImage release];var image = Titanium.UI.createImageView({url:myImage.png,width:320,height:109,});view.add(image);

  • SystemSoundID pmph;id sndpath = [[NSBundle mainBundle]pathForResource:@"mySound" ofType:@"wavinDirectory:@"/"];CFURLRef baseURL = (CFURLRef) [[NSURL alloc]initFileURLWithPath:sndpath];AudioServicesCreateSystemSoundID (baseURL, &pmph); AudioServicesPlaySystemSound(pmph); [baseURL release];var player = Ti.UI.createSound({url:mySound.wav"});player.play();

  • CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0);UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame]; [webView setBackgroundColor:[UIColor whiteColor]];NSString *urlAddress = @"http://www.google.com";NSURL *url = [NSURL URLWithString:urlAddress];NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];[webView loadRequest:requestObj];[self addSubview:webView];[webView release];var webView = Titanium.UI.createWebView({url: http://www.google.com '});self.add(webView);

  • JavaScript ( iOS Objective-C, Android Java)

  • Module SDK Java Script Titanium Mobile

  • F.A.Q. How-Tos

  • appcelerator.comgithub.com/appceleratortwitter.com/appcelerator

    titaniumdev.rugennady@potapov.com

    **

Recommended

View more >