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 () {
|
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");
|
||||||
}
|
}
|
||||||
|
@ -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 />
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user