Skip to content

Commit 089a3bf

Browse files
committed
Merge with branch 0.0.6 to release 0.0.7 version
1 parent 9fb42a0 commit 089a3bf

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ document.addEventListener("deviceready", function() {
163163
* from a ".xib" file. If not exists, try instantiate just by
164164
* UIViewController class.
165165
*
166-
* By convention, your ViewController class needs finish with
167-
* 'ViewController'.
166+
* By convention, your ViewController class/xib needs contains 'Controller'
167+
* string in any part of the name
168+
* .
168169
*/
169170
cordova.plugins.NativeView.show('MyUIViewController');
170171
```
@@ -178,8 +179,8 @@ cordova.plugins.NativeView.show('MyUIViewController');
178179
* "rootViewController" of your storyboard will be
179180
* instantiated.
180181
*
181-
* By convention, your
182-
* Storyboard name needs finish with 'Storyboard'
182+
* By convention, your Storyboard name needs contains 'Storyboard'
183+
* string in any part of the name
183184
*/
184185
cordova.plugins.NativeView.show('MyStorboard');
185186
````

cordova-plugin-nativeview.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "cordova-plugin-nativeview"
19-
s.version = "0.0.2"
19+
s.version = "0.0.7"
2020
s.summary = "Start or Back to a native screen/page"
2121

2222
# This description is used to generate tags and improve search results.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-nativeview",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"types": "./types/index.d.ts",
55
"description": "Start or Back to a native screen/page",
66
"author": {
@@ -38,6 +38,6 @@
3838
"np": "^3.0.4"
3939
},
4040
"scripts": {
41-
"publishPackage": "./node_modules/.bin/np"
41+
"release": "./node_modules/.bin/np"
4242
}
4343
}

src/ios/CDVNativeView.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ - (void)show:(CDVInvokedUrlCommand*)command {
5252

5353
NSString *firstParam = [command argumentAtIndex: 0];
5454

55-
if ([firstParam hasSuffix:@"Storyboard"]) {
55+
if ([firstParam containsString:@"Storyboard"]) {
5656
// Init viewController from Storyboard with initial view Controlleror or user defined viewControllerName
5757
[self instantiateViewController:nil fromStoryboard:firstParam];
5858

59-
} else if ([firstParam hasSuffix:@"ViewController"]) {
59+
} else if ([firstParam containsString:@"Controller"]) {
6060
// Init viewController with or without xib
6161
[self instantiateViewController:firstParam];
6262

@@ -150,7 +150,7 @@ - (void) instantiateViewController:(NSString *)viewControllerName fromStoryboard
150150
UIViewController *destinyViewController = nil;
151151

152152
// Call preInitializeViewControllerWithName:fromStoryBoardName if exists in self.viewController
153-
SEL selector = NSSelectorFromString(@"preInitializeViewControllerWithName:fromStoryBoardName");
153+
SEL selector = NSSelectorFromString(@"preInitializeViewControllerWithName:fromStoryBoardName:");
154154

155155
if ([self.viewController respondsToSelector:selector]) {
156156

0 commit comments

Comments
 (0)