diff --git a/tns-core-modules/application/application.ios.ts b/tns-core-modules/application/application.ios.ts index 081ef4356..8d2dc3f96 100644 --- a/tns-core-modules/application/application.ios.ts +++ b/tns-core-modules/application/application.ios.ts @@ -214,6 +214,8 @@ exports.start = function (entry?: NavigationEntry) { if (entry) { exports.mainEntry = entry; } + + started = true; if (!iosApp.nativeApp) { // Normal NativeScript app will need UIApplicationMain. diff --git a/tns-core-modules/ui/label/label.ios.ts b/tns-core-modules/ui/label/label.ios.ts index eac3aa96c..55025980e 100644 --- a/tns-core-modules/ui/label/label.ios.ts +++ b/tns-core-modules/ui/label/label.ios.ts @@ -84,7 +84,7 @@ export class Label extends TextBase implements LabelDefinition { this._fixedSize = (widthMode === layout.EXACTLY ? FixedSize.WIDTH : FixedSize.NONE) | (heightMode === layout.EXACTLY ? FixedSize.HEIGHT : FixedSize.NONE); - let nativeSize = nativeView.sizeThatFits(CGSizeMake(width, height)); + let nativeSize = nativeView.sizeThatFits(CGSizeMake(layout.toDeviceIndependentPixels(width), layout.toDeviceIndependentPixels(height))); let labelWidth = layout.toDevicePixels(nativeSize.width); if (this.textWrap) {