mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
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:
@ -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");
|
||||
}
|
||||
|
@ -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 />
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user