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 () {
log("Application launched: applicationDidFinishLaunchingWithOptions.");
this.window = new UIKit.UIWindow(UIKit.UIScreen.mainScreen().bounds());
this.window.setBackgroundColor(UIKit.UIColor.whiteColor());
this.window = new UIKit.UIWindow(UIKit.UIScreen.mainScreen().bounds);
this.window.backgroundColor = UIKit.UIColor.whiteColor();
var iosApp = <Application>currentApp.ios;
//this.window.setRootViewController(iosApp.rootController);
if (currentApp.onLaunch) {
this.window.setRootViewController(currentApp.onLaunch());
this.window.rootViewController = currentApp.onLaunch();
} else {
log("Missing TK.UI.Application.current.onLaunch");
}

View File

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

View File

@ -51,10 +51,10 @@ export class Image {
}
public getHeight(): number {
return (this.ios) ? this.ios.size().height : NaN;
return (this.ios) ? this.ios.size.height : NaN;
}
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 {
Client.get(url, function (data) {
if (successCallback) {
successCallback(Foundation.NSString.initWithDataEncoding(data, 4));
successCallback(Foundation.NSString.initWithDataEncoding(data, 4).toString());
}
}, errorCallback);
} catch (ex) {