mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #6707 from NativeScript/release
This commit is contained in:
@@ -305,7 +305,7 @@ export function start(entry?: string | NavigationEntry) {
|
||||
started = true;
|
||||
|
||||
if (!iosApp.nativeApp) {
|
||||
// Normal NativeScript app will need UIApplicationMain.
|
||||
// Normal NativeScript app will need UIApplicationMain.
|
||||
UIApplicationMain(0, null, null, iosApp && iosApp.delegate ? NSStringFromClass(<any>iosApp.delegate) : NSStringFromClass(Responder));
|
||||
} else {
|
||||
// TODO: this rootView should be held alive until rootController dismissViewController is called.
|
||||
@@ -320,7 +320,7 @@ export function start(entry?: string | NavigationEntry) {
|
||||
rootView._setupAsRootView({});
|
||||
let embedderDelegate = NativeScriptEmbedder.sharedInstance().delegate;
|
||||
if (embedderDelegate) {
|
||||
embedderDelegate.performSelectorWithObject("presentNativeScriptApp:", controller);
|
||||
embedderDelegate.presentNativeScriptApp(controller);
|
||||
} else {
|
||||
let visibleVC = utils.ios.getVisibleViewController(rootController);
|
||||
visibleVC.presentViewControllerAnimatedCompletion(controller, true, null);
|
||||
|
||||
11
tns-core-modules/tns-core-modules.d.ts
vendored
11
tns-core-modules/tns-core-modules.d.ts
vendored
@@ -160,14 +160,3 @@ interface Array<T> {
|
||||
//Dialogs
|
||||
declare function alert(message?: any): void;
|
||||
declare function confirm(message?: string): boolean;
|
||||
|
||||
// Embedding
|
||||
declare interface NativeScriptEmbedderDelegate /* NSObject */ {
|
||||
presentNativeScriptApp(any/* UIViewController*/): any;
|
||||
performSelectorWithObject(string, any): any;
|
||||
}
|
||||
|
||||
declare class NativeScriptEmbedder {
|
||||
public static sharedInstance(): NativeScriptEmbedder;
|
||||
public delegate: NativeScriptEmbedderDelegate;
|
||||
}
|
||||
|
||||
@@ -154,12 +154,15 @@ export class TextBase extends TextBaseCommon {
|
||||
case "none":
|
||||
break;
|
||||
case "underline":
|
||||
// TODO: Replace deprecated `StyleSingle` with `Single` after the next typings update
|
||||
dict.set(NSUnderlineStyleAttributeName, NSUnderlineStyle.StyleSingle);
|
||||
break;
|
||||
case "line-through":
|
||||
// TODO: Replace deprecated `StyleSingle` with `Single` after the next typings update
|
||||
dict.set(NSStrikethroughStyleAttributeName, NSUnderlineStyle.StyleSingle);
|
||||
break;
|
||||
case "underline line-through":
|
||||
// TODO: Replace deprecated `StyleSingle` with `Single` after the next typings update
|
||||
dict.set(NSUnderlineStyleAttributeName, NSUnderlineStyle.StyleSingle);
|
||||
dict.set(NSStrikethroughStyleAttributeName, NSUnderlineStyle.StyleSingle);
|
||||
break;
|
||||
@@ -196,7 +199,7 @@ export class TextBase extends TextBaseCommon {
|
||||
// UITextView's font seems to change inside.
|
||||
dict.set(NSFontAttributeName, this.nativeTextViewProtected.font);
|
||||
}
|
||||
|
||||
|
||||
const result = NSMutableAttributedString.alloc().initWithString(source);
|
||||
result.setAttributesRange(<any>dict, { location: 0, length: source.length });
|
||||
if (this.nativeTextViewProtected instanceof UIButton) {
|
||||
|
||||
Reference in New Issue
Block a user