Fixed iOS BCL to use properties instead of methods.

Fixed web_client to call .toString() on NSString
Fixed BCL project to use version 1.0
This commit is contained in:
hshristov
2014-04-07 13:48:36 +03:00
parent 11818c08df
commit ca201cf9d7
4 changed files with 7 additions and 7 deletions

View File

@ -56,14 +56,14 @@ export module tk {
applicationDidFinishLaunchingWithOptions: function () { applicationDidFinishLaunchingWithOptions: function () {
log("Application launched: applicationDidFinishLaunchingWithOptions."); log("Application launched: applicationDidFinishLaunchingWithOptions.");
this.window = new UIKit.UIWindow(UIKit.UIScreen.mainScreen().bounds()); this.window = new UIKit.UIWindow(UIKit.UIScreen.mainScreen().bounds);
this.window.setBackgroundColor(UIKit.UIColor.whiteColor()); this.window.backgroundColor = UIKit.UIColor.whiteColor();
var iosApp = <Application>currentApp.ios; var iosApp = <Application>currentApp.ios;
//this.window.setRootViewController(iosApp.rootController); //this.window.setRootViewController(iosApp.rootController);
if (currentApp.onLaunch) { if (currentApp.onLaunch) {
this.window.setRootViewController(currentApp.onLaunch()); this.window.rootViewController = currentApp.onLaunch();
} else { } else {
log("Missing TK.UI.Application.current.onLaunch"); log("Missing TK.UI.Application.current.onLaunch");
} }

View File

@ -9,7 +9,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TypeScriptToolsVersion>0.9</TypeScriptToolsVersion> <TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort /> <IISExpressSSLPort />
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication />

View File

@ -51,10 +51,10 @@ export class Image {
} }
public getHeight(): number { public getHeight(): number {
return (this.ios) ? this.ios.size().height : NaN; return (this.ios) ? this.ios.size.height : NaN;
} }
public getWidth(): number { public getWidth(): number {
return (this.ios) ? this.ios.size().width : NaN; return (this.ios) ? this.ios.size.width : NaN;
} }
} }

View File

@ -12,7 +12,7 @@ export class Client {
try { try {
Client.get(url, function (data) { Client.get(url, function (data) {
if (successCallback) { if (successCallback) {
successCallback(Foundation.NSString.initWithDataEncoding(data, 4)); successCallback(Foundation.NSString.initWithDataEncoding(data, 4).toString());
} }
}, errorCallback); }, errorCallback);
} catch (ex) { } catch (ex) {