You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/11 09:37:43 UTC

[09/13] incubator-weex git commit: * [doc] fix documentation error in extending ios

* [doc] fix documentation error in extending ios


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/63896cb8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/63896cb8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/63896cb8

Branch: refs/heads/0.16-dev
Commit: 63896cb8f13dc8443da6863738a4f77f186aa8c0
Parents: 75101d5
Author: cxfeng <cx...@apache.org>
Authored: Fri Aug 4 10:15:53 2017 +0800
Committer: cxfeng <cx...@apache.org>
Committed: Fri Aug 4 10:15:53 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/advanced/extend-to-ios.md | 4 +++-
 doc/source/references/advanced/extend-to-ios.md    | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/63896cb8/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md b/doc/source/cn/references/advanced/extend-to-ios.md
index 5229201..bf949fd 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -28,8 +28,10 @@ Weex SDK 只提供渲染,而不是其他的能力,如果你需要 像网络
 
     ```object-c
     @implementation WXEventModule
+    
     @synthesize weexInstance;
-        WX_EXPORT_METHOD(@selector(openURL:callback))
+    WX_EXPORT_METHOD(@selector(openURL:callback:))
+    
     - (void)openURL:(NSString *)url callback:(WXModuleCallback)callback
     {
         NSString *newURL = url;

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/63896cb8/doc/source/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-ios.md b/doc/source/references/advanced/extend-to-ios.md
index a6646b9..9039754 100644
--- a/doc/source/references/advanced/extend-to-ios.md
+++ b/doc/source/references/advanced/extend-to-ios.md
@@ -31,8 +31,9 @@ For example: If you want to implement an address jumping function, you can achie
 
 ```objective-c
 @implementation WXEventModule
+
 @synthesize weexInstance;
-    WX_EXPORT_METHOD(@selector(openURL:callback))
+WX_EXPORT_METHOD(@selector(openURL:callback:))
 
 - (void)openURL:(NSString *)url callback:(WXModuleCallback)callback
 {
@@ -337,4 +338,4 @@ after your registration for your own custom component, now you can call it in yo
     }
   }
 </script>
-```
\ No newline at end of file
+```