{"action":"closed","number":593,"pull_request":{"url":"https://api.github.com/repos/leancloud/docs/pulls/593","id":47767748,"html_url":"https://github.com/leancloud/docs/pull/593","diff_url":"https://github.com/leancloud/docs/pull/593.diff","patch_url":"https://github.com/leancloud/docs/pull/593.patch","issue_url":"https://api.github.com/repos/leancloud/docs/issues/593","number":593,"state":"closed","locked":false,"title":"Swift 开发指南讨论","user":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"body":"效果如下：\r\n\r\n![qq20151015-5 2x](https://cloud.githubusercontent.com/assets/5022872/10510696/009635b8-7367-11e5-9e53-cf5913f083bc.png)\r\n\r\n![qq20151015-6 2x](https://cloud.githubusercontent.com/assets/5022872/10510706/11d17a9a-7367-11e5-9181-e4b3daa6d33c.png)\r\n\r\n![qq20151015-7 2x](https://cloud.githubusercontent.com/assets/5022872/10510714/1a21b3d6-7367-11e5-97ce-8fcf66902bc5.png)\r\n\r\n感觉并不是很好。这样感觉没说什么。开发者还是要去看 OC 的文档。\r\n\r\n苹果的文档：\r\n\r\n![qq20151015-8 2x](https://cloud.githubusercontent.com/assets/5022872/10510728/3d5e24ce-7367-11e5-8af7-bc837b1ff09c.png)\r\n\r\n可控制显示仅  Objective C 或 仅 Swift ，或者两者都显示。\r\n\r\nFirebase 的文档：\r\n![image](https://cloud.githubusercontent.com/assets/5022872/10510798/ad2d276e-7367-11e5-8b10-a609fdc44578.png)\r\n\r\n可以控制切换语言。\r\n\r\n我的打算是先研究一下 Firebase 样式的语言切换，然后增加这种支持。或者利用我们的文档工具，抽象出模板，分别实现 OC 与 Swift。\r\n\r\n因为 OC 和 Swift 仅代码表达上不太一样，用语言切换的方式是比较好的。一时没有实现思路， @sdjcw 有没研究过这种方式？\r\n\r\n@tang3w @jwfing ","created_at":"2015-10-15T10:17:06Z","updated_at":"2016-02-22T07:43:43Z","closed_at":"2016-02-22T07:43:43Z","merged_at":null,"merge_commit_sha":"47ed512e63d825bcce11e2fa1d42879036db2fdc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leancloud/docs/pulls/593/commits","review_comments_url":"https://api.github.com/repos/leancloud/docs/pulls/593/comments","review_comment_url":"https://api.github.com/repos/leancloud/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leancloud/docs/issues/593/comments","statuses_url":"https://api.github.com/repos/leancloud/docs/statuses/a1281111701ef25b7b1303380f4715e9ead1a4b8","head":{"label":"lzwjava:swift-doc","ref":"swift-doc","sha":"a1281111701ef25b7b1303380f4715e9ead1a4b8","user":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"repo":{"id":31875882,"name":"docs","full_name":"lzwjava/docs","owner":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lzwjava/docs","description":"LeanCloud Documentation","fork":true,"url":"https://api.github.com/repos/lzwjava/docs","forks_url":"https://api.github.com/repos/lzwjava/docs/forks","keys_url":"https://api.github.com/repos/lzwjava/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lzwjava/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lzwjava/docs/teams","hooks_url":"https://api.github.com/repos/lzwjava/docs/hooks","issue_events_url":"https://api.github.com/repos/lzwjava/docs/issues/events{/number}","events_url":"https://api.github.com/repos/lzwjava/docs/events","assignees_url":"https://api.github.com/repos/lzwjava/docs/assignees{/user}","branches_url":"https://api.github.com/repos/lzwjava/docs/branches{/branch}","tags_url":"https://api.github.com/repos/lzwjava/docs/tags","blobs_url":"https://api.github.com/repos/lzwjava/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lzwjava/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lzwjava/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/lzwjava/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lzwjava/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/lzwjava/docs/languages","stargazers_url":"https://api.github.com/repos/lzwjava/docs/stargazers","contributors_url":"https://api.github.com/repos/lzwjava/docs/contributors","subscribers_url":"https://api.github.com/repos/lzwjava/docs/subscribers","subscription_url":"https://api.github.com/repos/lzwjava/docs/subscription","commits_url":"https://api.github.com/repos/lzwjava/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/lzwjava/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/lzwjava/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/lzwjava/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/lzwjava/docs/contents/{+path}","compare_url":"https://api.github.com/repos/lzwjava/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lzwjava/docs/merges","archive_url":"https://api.github.com/repos/lzwjava/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lzwjava/docs/downloads","issues_url":"https://api.github.com/repos/lzwjava/docs/issues{/number}","pulls_url":"https://api.github.com/repos/lzwjava/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/lzwjava/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/lzwjava/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lzwjava/docs/labels{/name}","releases_url":"https://api.github.com/repos/lzwjava/docs/releases{/id}","deployments_url":"https://api.github.com/repos/lzwjava/docs/deployments","created_at":"2015-03-09T02:39:47Z","updated_at":"2015-05-07T15:58:21Z","pushed_at":"2015-11-06T07:20:38Z","git_url":"git://github.com/lzwjava/docs.git","ssh_url":"git@github.com:lzwjava/docs.git","clone_url":"https://github.com/lzwjava/docs.git","svn_url":"https://github.com/lzwjava/docs","homepage":"http://leancloud.cn/docs/","size":28051,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"leancloud:master","ref":"master","sha":"0c4b955f3ffc6718b5886a703aed44e80858728b","user":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"repo":{"id":25067518,"name":"docs","full_name":"leancloud/docs","owner":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leancloud/docs","description":"LeanCloud Documentation","fork":false,"url":"https://api.github.com/repos/leancloud/docs","forks_url":"https://api.github.com/repos/leancloud/docs/forks","keys_url":"https://api.github.com/repos/leancloud/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leancloud/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leancloud/docs/teams","hooks_url":"https://api.github.com/repos/leancloud/docs/hooks","issue_events_url":"https://api.github.com/repos/leancloud/docs/issues/events{/number}","events_url":"https://api.github.com/repos/leancloud/docs/events","assignees_url":"https://api.github.com/repos/leancloud/docs/assignees{/user}","branches_url":"https://api.github.com/repos/leancloud/docs/branches{/branch}","tags_url":"https://api.github.com/repos/leancloud/docs/tags","blobs_url":"https://api.github.com/repos/leancloud/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leancloud/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leancloud/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/leancloud/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leancloud/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/leancloud/docs/languages","stargazers_url":"https://api.github.com/repos/leancloud/docs/stargazers","contributors_url":"https://api.github.com/repos/leancloud/docs/contributors","subscribers_url":"https://api.github.com/repos/leancloud/docs/subscribers","subscription_url":"https://api.github.com/repos/leancloud/docs/subscription","commits_url":"https://api.github.com/repos/leancloud/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/leancloud/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/leancloud/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/leancloud/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/leancloud/docs/contents/{+path}","compare_url":"https://api.github.com/repos/leancloud/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leancloud/docs/merges","archive_url":"https://api.github.com/repos/leancloud/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leancloud/docs/downloads","issues_url":"https://api.github.com/repos/leancloud/docs/issues{/number}","pulls_url":"https://api.github.com/repos/leancloud/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/leancloud/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/leancloud/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leancloud/docs/labels{/name}","releases_url":"https://api.github.com/repos/leancloud/docs/releases{/id}","deployments_url":"https://api.github.com/repos/leancloud/docs/deployments","created_at":"2014-10-11T07:14:37Z","updated_at":"2016-02-19T12:39:43Z","pushed_at":"2016-02-22T07:42:19Z","git_url":"git://github.com/leancloud/docs.git","ssh_url":"git@github.com:leancloud/docs.git","clone_url":"https://github.com/leancloud/docs.git","svn_url":"https://github.com/leancloud/docs","homepage":"http://leancloud.cn/docs/","size":32947,"stargazers_count":198,"watchers_count":198,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":130,"mirror_url":null,"open_issues_count":84,"forks":130,"open_issues":84,"watchers":198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leancloud/docs/pulls/593"},"html":{"href":"https://github.com/leancloud/docs/pull/593"},"issue":{"href":"https://api.github.com/repos/leancloud/docs/issues/593"},"comments":{"href":"https://api.github.com/repos/leancloud/docs/issues/593/comments"},"review_comments":{"href":"https://api.github.com/repos/leancloud/docs/pulls/593/comments"},"review_comment":{"href":"https://api.github.com/repos/leancloud/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leancloud/docs/pulls/593/commits"},"statuses":{"href":"https://api.github.com/repos/leancloud/docs/statuses/a1281111701ef25b7b1303380f4715e9ead1a4b8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":111,"deletions":0,"changed_files":2}}