You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/20 06:41:31 UTC

[42/50] [abbrv] incubator-weex git commit: * [ios] update format

* [ios] update format


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

Branch: refs/heads/master
Commit: 6289eedbc38f297c175ca48ba78d12a995c3b9aa
Parents: 7e579b9
Author: acton393 <zh...@gmail.com>
Authored: Fri Feb 17 11:42:42 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Feb 17 11:42:42 2017 +0800

----------------------------------------------------------------------
 .../cn/references/advanced/extend-to-ios.md     | 21 ++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6289eedb/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 7fe5601..d293487 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -254,23 +254,24 @@ return [[WXImageView alloc] init];
 	 
 	 - (void)focus
 	   {
-	   		NSLog(@"you got it");
+          NSLog(@"you got it");
 	   }
 	 @end
 	 ```
 	
-	- \u6ce8\u518c\u7ec4\u4ef6 `[WXSDKEngine registerComponent:@"mycomponent" withClass:[WXMyComponent class]] `
+	- \u6ce8\u518c\u7ec4\u4ef6 `[WXSDKEngine registerComponent:@"mycomponent" withClass:[WXMyComponent class]]`
+
 	- \u5728weex \u6587\u4ef6\u4e2d\u8c03\u7528
 
-		```
-		<template>
-	     		<mycomponent id='mycomponent'></mycomponent>
+      ```
+        <template>
+          <mycomponent id='mycomponent'></mycomponent>
 	 	</template>
 		<script>
-		   module.exports = {
-		    	created: function() {
-		    		this.$el('mycomponent').focus();
+          module.exports = {
+            created:function() {
+                      this.$el('mycomponent').focus();
 		    		}
-		   }
+          }
 		</script>
- 		``` 
\ No newline at end of file
+      ```