{"action":"created","comment":{"url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/comments/71333497","id":71333497,"diff_hunk":"@@ -55,44 +56,88 @@ - (void)viewDidLoad {\n     [keyboardDoneButtonView setItems:[NSArray arrayWithObjects:spacer, spacer1, doneButton, nil]];\n     \n     // Viewの配置\n-    _bookDate.inputAccessoryView = keyboardDoneButtonView;\n+    _textFieldAddBookDate.inputAccessoryView = keyboardDoneButtonView;\n     \n-    [self.view addSubview:_bookDate];\n-\n+    [self.view addSubview:_textFieldAddBookDate\n+     ];\n }\n \n #pragma mark DatePickerの編集が完了したら結果をTextFieldに表示\n - (void)updateTextField:(id)sender {\n     NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];\n     dateFormatter.dateFormat = @\"yyyy/MM/dd\";\n     UIDatePicker *picker = (UIDatePicker *)sender;\n-    _bookDate.text = [dateFormatter stringFromDate:picker.date];\n+    _textFieldAddBookDate.text = [dateFormatter stringFromDate:picker.date];\n }\n \n #pragma mark datepickerの完了ボタンが押された場合\n - (void)pickerDoneClicked {\n-    [_bookDate resignFirstResponder];\n-    _bookDate = nil;\n+    [_textFieldAddBookDate resignFirstResponder];\n+    _textFieldAddBookDate = nil;\n }\n \n-- (IBAction)onCloseButtonClick:(id)sender {\n+- (IBAction)onCloseButtonTap:(id)sender {\n     [self dismissViewControllerAnimated:YES completion:nil];\n }\n \n - (IBAction)onReturn:(UITextField *)sender {\n     [sender resignFirstResponder];\n }\n-\n+//\n - (IBAction)onSingleTap:(UITapGestureRecognizer *)sender {\n     [self.view endEditing:YES];\n }\n \n+- (IBAction)onCameraRollButtonTap:(UIButton *)sender {\n+    UIImagePickerController *picker = [[UIImagePickerController alloc] init];\n+    picker.delegate = self;\n+    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;\n+    [self presentViewController:picker animated:YES completion:nil];\n+}\n+\n+//画像を選択\n+- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {\n+    UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];\n+    [self dismissViewControllerAnimated:YES completion:nil];\n+    self.AddBookImage.image = image;\n+}\n+\n+- (void)viewWillAppear:(BOOL)animated {\n+    [super viewWillAppear:animated];\n+    \n+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];\n+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];\n+}\n+\n+- (void)viewWillDisappear:(BOOL)animated {\n+    [super viewWillDisappear:animated];\n+    \n+    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];\n+    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil];}\n+\n+//キーボード表示\n+-(void) keyboardWillShow:(NSNotification *) notification{","path":"BookManager/BMAddViewController.m","position":86,"original_position":86,"commit_id":"74b646bcc93b24cb95cfdd87660c0c6085bc0c83","original_commit_id":"74b646bcc93b24cb95cfdd87660c0c6085bc0c83","user":{"login":"auglish-cq","id":11718226,"avatar_url":"https://avatars.githubusercontent.com/u/11718226?v=3","gravatar_id":"","url":"https://api.github.com/users/auglish-cq","html_url":"https://github.com/auglish-cq","followers_url":"https://api.github.com/users/auglish-cq/followers","following_url":"https://api.github.com/users/auglish-cq/following{/other_user}","gists_url":"https://api.github.com/users/auglish-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/auglish-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auglish-cq/subscriptions","organizations_url":"https://api.github.com/users/auglish-cq/orgs","repos_url":"https://api.github.com/users/auglish-cq/repos","events_url":"https://api.github.com/users/auglish-cq/events{/privacy}","received_events_url":"https://api.github.com/users/auglish-cq/received_events","type":"User","site_admin":false},"body":"-と(void)の間にスペースを入れる。\r\n(void)とメソッド名の間にスペースを入れない。\r\nメソッド名は原則動詞から始めるようにすること。","created_at":"2016-07-19T13:07:02Z","updated_at":"2016-07-19T13:07:02Z","html_url":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3#discussion_r71333497","pull_request_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/comments/71333497"},"html":{"href":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3#discussion_r71333497"},"pull_request":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3","id":76108971,"html_url":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3","diff_url":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3.diff","patch_url":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3.patch","issue_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/3","number":3,"state":"open","locked":false,"title":"Develop","user":{"login":"ykawakami-cq","id":19943011,"avatar_url":"https://avatars.githubusercontent.com/u/19943011?v=3","gravatar_id":"","url":"https://api.github.com/users/ykawakami-cq","html_url":"https://github.com/ykawakami-cq","followers_url":"https://api.github.com/users/ykawakami-cq/followers","following_url":"https://api.github.com/users/ykawakami-cq/following{/other_user}","gists_url":"https://api.github.com/users/ykawakami-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/ykawakami-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykawakami-cq/subscriptions","organizations_url":"https://api.github.com/users/ykawakami-cq/orgs","repos_url":"https://api.github.com/users/ykawakami-cq/repos","events_url":"https://api.github.com/users/ykawakami-cq/events{/privacy}","received_events_url":"https://api.github.com/users/ykawakami-cq/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-04T03:31:09Z","updated_at":"2016-07-19T13:07:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"224c002b3c41210717c1f0c2f36d6eac5b3157d1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/3/comments","statuses_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/statuses/74b646bcc93b24cb95cfdd87660c0c6085bc0c83","head":{"label":"ykawakami-cq:develop","ref":"develop","sha":"74b646bcc93b24cb95cfdd87660c0c6085bc0c83","user":{"login":"ykawakami-cq","id":19943011,"avatar_url":"https://avatars.githubusercontent.com/u/19943011?v=3","gravatar_id":"","url":"https://api.github.com/users/ykawakami-cq","html_url":"https://github.com/ykawakami-cq","followers_url":"https://api.github.com/users/ykawakami-cq/followers","following_url":"https://api.github.com/users/ykawakami-cq/following{/other_user}","gists_url":"https://api.github.com/users/ykawakami-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/ykawakami-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykawakami-cq/subscriptions","organizations_url":"https://api.github.com/users/ykawakami-cq/orgs","repos_url":"https://api.github.com/users/ykawakami-cq/repos","events_url":"https://api.github.com/users/ykawakami-cq/events{/privacy}","received_events_url":"https://api.github.com/users/ykawakami-cq/received_events","type":"User","site_admin":false},"repo":{"id":61870124,"name":"BookManager-iOS","full_name":"ykawakami-cq/BookManager-iOS","owner":{"login":"ykawakami-cq","id":19943011,"avatar_url":"https://avatars.githubusercontent.com/u/19943011?v=3","gravatar_id":"","url":"https://api.github.com/users/ykawakami-cq","html_url":"https://github.com/ykawakami-cq","followers_url":"https://api.github.com/users/ykawakami-cq/followers","following_url":"https://api.github.com/users/ykawakami-cq/following{/other_user}","gists_url":"https://api.github.com/users/ykawakami-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/ykawakami-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykawakami-cq/subscriptions","organizations_url":"https://api.github.com/users/ykawakami-cq/orgs","repos_url":"https://api.github.com/users/ykawakami-cq/repos","events_url":"https://api.github.com/users/ykawakami-cq/events{/privacy}","received_events_url":"https://api.github.com/users/ykawakami-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ykawakami-cq/BookManager-iOS","description":"書籍管理アプリ(iOS)","fork":false,"url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS","forks_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/forks","keys_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/teams","hooks_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/hooks","issue_events_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/events","assignees_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/tags","blobs_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/languages","stargazers_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/stargazers","contributors_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/contributors","subscribers_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/subscribers","subscription_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/subscription","commits_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/merges","archive_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/downloads","issues_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/labels{/name}","releases_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/deployments","created_at":"2016-06-24T08:36:26Z","updated_at":"2016-06-24T09:10:48Z","pushed_at":"2016-07-14T12:46:54Z","git_url":"git://github.com/ykawakami-cq/BookManager-iOS.git","ssh_url":"git@github.com:ykawakami-cq/BookManager-iOS.git","clone_url":"https://github.com/ykawakami-cq/BookManager-iOS.git","svn_url":"https://github.com/ykawakami-cq/BookManager-iOS","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ykawakami-cq:master","ref":"master","sha":"0a5ecd29c5b709c479284ecb1ec2ee58da0d4c57","user":{"login":"ykawakami-cq","id":19943011,"avatar_url":"https://avatars.githubusercontent.com/u/19943011?v=3","gravatar_id":"","url":"https://api.github.com/users/ykawakami-cq","html_url":"https://github.com/ykawakami-cq","followers_url":"https://api.github.com/users/ykawakami-cq/followers","following_url":"https://api.github.com/users/ykawakami-cq/following{/other_user}","gists_url":"https://api.github.com/users/ykawakami-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/ykawakami-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykawakami-cq/subscriptions","organizations_url":"https://api.github.com/users/ykawakami-cq/orgs","repos_url":"https://api.github.com/users/ykawakami-cq/repos","events_url":"https://api.github.com/users/ykawakami-cq/events{/privacy}","received_events_url":"https://api.github.com/users/ykawakami-cq/received_events","type":"User","site_admin":false},"repo":{"id":61870124,"name":"BookManager-iOS","full_name":"ykawakami-cq/BookManager-iOS","owner":{"login":"ykawakami-cq","id":19943011,"avatar_url":"https://avatars.githubusercontent.com/u/19943011?v=3","gravatar_id":"","url":"https://api.github.com/users/ykawakami-cq","html_url":"https://github.com/ykawakami-cq","followers_url":"https://api.github.com/users/ykawakami-cq/followers","following_url":"https://api.github.com/users/ykawakami-cq/following{/other_user}","gists_url":"https://api.github.com/users/ykawakami-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/ykawakami-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ykawakami-cq/subscriptions","organizations_url":"https://api.github.com/users/ykawakami-cq/orgs","repos_url":"https://api.github.com/users/ykawakami-cq/repos","events_url":"https://api.github.com/users/ykawakami-cq/events{/privacy}","received_events_url":"https://api.github.com/users/ykawakami-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ykawakami-cq/BookManager-iOS","description":"書籍管理アプリ(iOS)","fork":false,"url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS","forks_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/forks","keys_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/teams","hooks_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/hooks","issue_events_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/events","assignees_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/tags","blobs_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/languages","stargazers_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/stargazers","contributors_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/contributors","subscribers_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/subscribers","subscription_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/subscription","commits_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/merges","archive_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/downloads","issues_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/labels{/name}","releases_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/deployments","created_at":"2016-06-24T08:36:26Z","updated_at":"2016-06-24T09:10:48Z","pushed_at":"2016-07-14T12:46:54Z","git_url":"git://github.com/ykawakami-cq/BookManager-iOS.git","ssh_url":"git@github.com:ykawakami-cq/BookManager-iOS.git","clone_url":"https://github.com/ykawakami-cq/BookManager-iOS.git","svn_url":"https://github.com/ykawakami-cq/BookManager-iOS","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3"},"html":{"href":"https://github.com/ykawakami-cq/BookManager-iOS/pull/3"},"issue":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/3"},"comments":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ykawakami-cq/BookManager-iOS/statuses/74b646bcc93b24cb95cfdd87660c0c6085bc0c83"}}}}
{"actor":{"display_login":"auglish-cq"}}