{"action":"created","comment":{"url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/comments/39244798","id":39244798,"diff_hunk":"@@ -5,5 +5,124 @@\n //  Created by 坂本時緒 on 9/11/15.\n //  Copyright (c) 2015 NextVanguard. All rights reserved.\n //\n+import UIKit\n \n-import Foundation\n+class EditOrderPlayListViewController: UIViewController {\n+    //\n+    //  ViewController.swift\n+    //  StoryBoardPractice\n+    //\n+    //  Created by 坂本時緒 on 9/11/15.\n+    //  Copyright (c) 2015 坂本時緒. All rights reserved.\n+    //\n+\n+    @IBOutlet weak var titleField: UITextField!\n+    @IBOutlet weak var descField: UITextField!\n+    @IBOutlet weak var songListTableView: UITableView!\n+    @IBOutlet weak var moodBtn: UIButton!\n+    var songList: [Song] = []\n+    var tableData = [\"one\", \"two\", \"three\", \"four\", \"five\"]\n+    \n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        \n+        //tableViewの作成、delegate,dataSourceを設定\n+        self.songListTableView.delegate = self\n+        self.songListTableView.dataSource = self\n+        self.songListTableView.editing = true\n+        \n+        //Viewのプロパティ初期化\n+        initViewProp()\n+        \n+        //テストデータの挿入\n+        songList = genTestData(20)\n+        songListTableView.reloadData()\n+    }\n+    \n+    override func didReceiveMemoryWarning() {\n+        super.didReceiveMemoryWarning()\n+        // Dispose of any resources that can be recreated.\n+    }\n+    \n+    //Viewのプロパティ初期化\n+    func initViewProp(){\n+        moodBtn.layer.borderWidth = 1\n+        moodBtn.layer.cornerRadius = 3\n+    }\n+    \n+    //テストデータ生成関数\n+    func genTestData(dataLen: Int) -> [Song]{\n+        var testList: [Song] = []\n+        for(var i=0;i<dataLen;i++){\n+            var song = Song()\n+            song.id = i\n+            song.jacket = \"sample\"\n+            song.title = \"song\"+String(i)\n+            song.itunes_id = i\n+            testList.append(song)\n+        }\n+        return testList\n+    }\n+    \n+}\n+\n+//tableViewに対するdelegate\n+extension ViewController: UITableViewDataSource, UITableViewDelegate{\n+    //選択された時\n+    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {\n+        //self.performSegueWithIdentifier(\"tosend\",sender: nil)\n+    }\n+    \n+    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n+        NSLog(\"%d\",self.songList.count)\n+        return self.songList.count\n+    }\n+    \n+    //セルを作成\n+    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {\n+        let cell = UITableViewCell()\n+        \n+        let song = self.songList[indexPath.row]\n+        \n+        cell.textLabel?.text = song.title\n+        \n+        return cell\n+    }\n+    \n+    //高さを計算したいけどとりあえず放置\n+    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {\n+        //let song = self.songList[indexPath.row]\n+        \n+        let height :CGFloat! = nil\n+        \n+        NSLog(\"height => %d\",tableView.estimatedRowHeight)","path":"TachDesiginKyotoInaka/EditOrderPlayListViewController.swift","position":95,"original_position":95,"commit_id":"07e84a044849af9f6fd2ea1969c4136c3ebd0f1b","original_commit_id":"07e84a044849af9f6fd2ea1969c4136c3ebd0f1b","user":{"login":"ha1fha1f","id":10028587,"avatar_url":"https://avatars.githubusercontent.com/u/10028587?v=3","gravatar_id":"","url":"https://api.github.com/users/ha1fha1f","html_url":"https://github.com/ha1fha1f","followers_url":"https://api.github.com/users/ha1fha1f/followers","following_url":"https://api.github.com/users/ha1fha1f/following{/other_user}","gists_url":"https://api.github.com/users/ha1fha1f/gists{/gist_id}","starred_url":"https://api.github.com/users/ha1fha1f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ha1fha1f/subscriptions","organizations_url":"https://api.github.com/users/ha1fha1f/orgs","repos_url":"https://api.github.com/users/ha1fha1f/repos","events_url":"https://api.github.com/users/ha1fha1f/events{/privacy}","received_events_url":"https://api.github.com/users/ha1fha1f/received_events","type":"User","site_admin":false},"body":"NSLogは遅いので、printlnのほうがいいです","created_at":"2015-09-11T06:40:34Z","updated_at":"2015-09-11T06:40:34Z","html_url":"https://github.com/techcampman/techdesign_kyoto_c/pull/6#discussion_r39244798","pull_request_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/comments/39244798"},"html":{"href":"https://github.com/techcampman/techdesign_kyoto_c/pull/6#discussion_r39244798"},"pull_request":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6","id":44750767,"html_url":"https://github.com/techcampman/techdesign_kyoto_c/pull/6","diff_url":"https://github.com/techcampman/techdesign_kyoto_c/pull/6.diff","patch_url":"https://github.com/techcampman/techdesign_kyoto_c/pull/6.patch","issue_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/6","number":6,"state":"open","locked":false,"title":"Create edit order play list view controller","user":{"login":"gekkoukisi","id":1455573,"avatar_url":"https://avatars.githubusercontent.com/u/1455573?v=3","gravatar_id":"","url":"https://api.github.com/users/gekkoukisi","html_url":"https://github.com/gekkoukisi","followers_url":"https://api.github.com/users/gekkoukisi/followers","following_url":"https://api.github.com/users/gekkoukisi/following{/other_user}","gists_url":"https://api.github.com/users/gekkoukisi/gists{/gist_id}","starred_url":"https://api.github.com/users/gekkoukisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gekkoukisi/subscriptions","organizations_url":"https://api.github.com/users/gekkoukisi/orgs","repos_url":"https://api.github.com/users/gekkoukisi/repos","events_url":"https://api.github.com/users/gekkoukisi/events{/privacy}","received_events_url":"https://api.github.com/users/gekkoukisi/received_events","type":"User","site_admin":false},"body":"おねしゃす","created_at":"2015-09-11T06:38:32Z","updated_at":"2015-09-11T06:40:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3fb5040abfc1d260b6f6efa1036159b1b6156d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6/commits","review_comments_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6/comments","review_comment_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/6/comments","statuses_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/statuses/07e84a044849af9f6fd2ea1969c4136c3ebd0f1b","head":{"label":"techcampman:create_EditOrderPlayListViewController","ref":"create_EditOrderPlayListViewController","sha":"07e84a044849af9f6fd2ea1969c4136c3ebd0f1b","user":{"login":"techcampman","id":8185908,"avatar_url":"https://avatars.githubusercontent.com/u/8185908?v=3","gravatar_id":"","url":"https://api.github.com/users/techcampman","html_url":"https://github.com/techcampman","followers_url":"https://api.github.com/users/techcampman/followers","following_url":"https://api.github.com/users/techcampman/following{/other_user}","gists_url":"https://api.github.com/users/techcampman/gists{/gist_id}","starred_url":"https://api.github.com/users/techcampman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcampman/subscriptions","organizations_url":"https://api.github.com/users/techcampman/orgs","repos_url":"https://api.github.com/users/techcampman/repos","events_url":"https://api.github.com/users/techcampman/events{/privacy}","received_events_url":"https://api.github.com/users/techcampman/received_events","type":"User","site_admin":false},"repo":{"id":42179380,"name":"techdesign_kyoto_c","full_name":"techcampman/techdesign_kyoto_c","owner":{"login":"techcampman","id":8185908,"avatar_url":"https://avatars.githubusercontent.com/u/8185908?v=3","gravatar_id":"","url":"https://api.github.com/users/techcampman","html_url":"https://github.com/techcampman","followers_url":"https://api.github.com/users/techcampman/followers","following_url":"https://api.github.com/users/techcampman/following{/other_user}","gists_url":"https://api.github.com/users/techcampman/gists{/gist_id}","starred_url":"https://api.github.com/users/techcampman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcampman/subscriptions","organizations_url":"https://api.github.com/users/techcampman/orgs","repos_url":"https://api.github.com/users/techcampman/repos","events_url":"https://api.github.com/users/techcampman/events{/privacy}","received_events_url":"https://api.github.com/users/techcampman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techcampman/techdesign_kyoto_c","description":"","fork":false,"url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c","forks_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/forks","keys_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/teams","hooks_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/hooks","issue_events_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/events{/number}","events_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/events","assignees_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/assignees{/user}","branches_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/branches{/branch}","tags_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/tags","blobs_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/refs{/sha}","trees_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/statuses/{sha}","languages_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/languages","stargazers_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/stargazers","contributors_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/contributors","subscribers_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/subscribers","subscription_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/subscription","commits_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/commits{/sha}","git_commits_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/commits{/sha}","comments_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/comments{/number}","issue_comment_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/comments{/number}","contents_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/contents/{+path}","compare_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/merges","archive_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/downloads","issues_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues{/number}","pulls_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls{/number}","milestones_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/milestones{/number}","notifications_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/labels{/name}","releases_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/releases{/id}","created_at":"2015-09-09T13:16:34Z","updated_at":"2015-09-10T05:59:56Z","pushed_at":"2015-09-11T06:38:46Z","git_url":"git://github.com/techcampman/techdesign_kyoto_c.git","ssh_url":"git@github.com:techcampman/techdesign_kyoto_c.git","clone_url":"https://github.com/techcampman/techdesign_kyoto_c.git","svn_url":"https://github.com/techcampman/techdesign_kyoto_c","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"techcampman:master","ref":"master","sha":"001e2c4c4fdedf72f4bffd41416a76e27fb4ee7a","user":{"login":"techcampman","id":8185908,"avatar_url":"https://avatars.githubusercontent.com/u/8185908?v=3","gravatar_id":"","url":"https://api.github.com/users/techcampman","html_url":"https://github.com/techcampman","followers_url":"https://api.github.com/users/techcampman/followers","following_url":"https://api.github.com/users/techcampman/following{/other_user}","gists_url":"https://api.github.com/users/techcampman/gists{/gist_id}","starred_url":"https://api.github.com/users/techcampman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcampman/subscriptions","organizations_url":"https://api.github.com/users/techcampman/orgs","repos_url":"https://api.github.com/users/techcampman/repos","events_url":"https://api.github.com/users/techcampman/events{/privacy}","received_events_url":"https://api.github.com/users/techcampman/received_events","type":"User","site_admin":false},"repo":{"id":42179380,"name":"techdesign_kyoto_c","full_name":"techcampman/techdesign_kyoto_c","owner":{"login":"techcampman","id":8185908,"avatar_url":"https://avatars.githubusercontent.com/u/8185908?v=3","gravatar_id":"","url":"https://api.github.com/users/techcampman","html_url":"https://github.com/techcampman","followers_url":"https://api.github.com/users/techcampman/followers","following_url":"https://api.github.com/users/techcampman/following{/other_user}","gists_url":"https://api.github.com/users/techcampman/gists{/gist_id}","starred_url":"https://api.github.com/users/techcampman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techcampman/subscriptions","organizations_url":"https://api.github.com/users/techcampman/orgs","repos_url":"https://api.github.com/users/techcampman/repos","events_url":"https://api.github.com/users/techcampman/events{/privacy}","received_events_url":"https://api.github.com/users/techcampman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techcampman/techdesign_kyoto_c","description":"","fork":false,"url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c","forks_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/forks","keys_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/teams","hooks_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/hooks","issue_events_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/events{/number}","events_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/events","assignees_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/assignees{/user}","branches_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/branches{/branch}","tags_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/tags","blobs_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/refs{/sha}","trees_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/statuses/{sha}","languages_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/languages","stargazers_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/stargazers","contributors_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/contributors","subscribers_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/subscribers","subscription_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/subscription","commits_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/commits{/sha}","git_commits_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/git/commits{/sha}","comments_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/comments{/number}","issue_comment_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/comments{/number}","contents_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/contents/{+path}","compare_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/merges","archive_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/downloads","issues_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues{/number}","pulls_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls{/number}","milestones_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/milestones{/number}","notifications_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/labels{/name}","releases_url":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/releases{/id}","created_at":"2015-09-09T13:16:34Z","updated_at":"2015-09-10T05:59:56Z","pushed_at":"2015-09-11T06:38:46Z","git_url":"git://github.com/techcampman/techdesign_kyoto_c.git","ssh_url":"git@github.com:techcampman/techdesign_kyoto_c.git","clone_url":"https://github.com/techcampman/techdesign_kyoto_c.git","svn_url":"https://github.com/techcampman/techdesign_kyoto_c","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6"},"html":{"href":"https://github.com/techcampman/techdesign_kyoto_c/pull/6"},"issue":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/6"},"comments":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/techcampman/techdesign_kyoto_c/statuses/07e84a044849af9f6fd2ea1969c4136c3ebd0f1b"}}}}