Repository: incubator-weex Updated Branches: refs/heads/dev 75101d59f -> 63896cb8f
* [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/dev Commit: 63896cb8f13dc8443da6863738a4f77f186aa8c0 Parents: 75101d5 Author: cxfeng <cxf...@apache.org> Authored: Fri Aug 4 10:15:53 2017 +0800 Committer: cxfeng <cxf...@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 +```