{"action":"created","comment":{"url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/comments/95116002","pull_request_review_id":15656219,"id":95116002,"diff_hunk":"@@ -0,0 +1,113 @@\n+//\n+//  PhotoDetailView.m\n+//  PhotoMap\n+//\n+//  Created by wsc-046b on 1/5/17.\n+//  Copyright © 2017 wsc-046b. All rights reserved.\n+//\n+\n+#import \"PhotoDetailView.h\"\n+#import \"NSDate+ConvertableToString.h\"\n+#import \"PlaceCategory.h\"\n+\n+@interface PhotoDetailView()\n+\n+@property (weak, nonatomic) IBOutlet UIView *detailView;\n+@property (weak, nonatomic) IBOutlet UIImageView *imageView;\n+@property (weak, nonatomic) IBOutlet UITextField *dateView;\n+@property (weak, nonatomic) IBOutlet UITextField *categoryView;\n+@property (weak, nonatomic) IBOutlet UITextView *informationView;\n+\n+-(void) addDetailView;\n+\n+@end\n+\n+@implementation PhotoDetailView\n+\n+-(instancetype)init {\n+    self = [super init];\n+    [[NSBundle mainBundle] loadNibNamed:@\"PhotoDetailView\" owner:self options:nil];\n+    [self addDetailView];\n+    return self;\n+}\n+\n+-(void) addDetailView {\n+    self.informationView.layer.borderColor = [[UIColor lightGrayColor] CGColor];\n+    self.informationView.layer.borderWidth = 1.0;\n+    self.informationView.layer.cornerRadius = 5.0;\n+    UIPickerView *picker = [[UIPickerView alloc] init];\n+    picker.delegate = self;\n+    picker.backgroundColor = [UIColor whiteColor];\n+    self.categoryView.inputView = picker;\n+    self.detailView.layer.cornerRadius = 5;\n+    self.detailView.layer.masksToBounds = YES;\n+    CGRect newFrame = self.frame;\n+    newFrame.size = self.detailView.frame.size;\n+    self.frame = newFrame;\n+    [self addSubview:self.detailView];\n+}\n+\n+-(void) setImage:(UIImage *)image {\n+    self.imageView.image = image;\n+}\n+-(void) setDate:(NSDate *)date {\n+    self.dateView.text = [date convertDateToString];\n+}\n+-(void) setCategory:(PlaceCategory)category {\n+    self.categoryView.text = [PlaceCategoryConverter stringFromCategory:category];\n+}\n+-(void) setInformation:(NSString *)information {\n+    self.informationView.text = information;\n+}\n+\n+- (IBAction)handleCancelButton:(id)sender {\n+    if (self.completionBlock)\n+        self.completionBlock(YES, [PlaceCategoryConverter categoryFromString:self.categoryView.text], self.informationView.text);\n+    \n+    [self removeFromSuperview];\n+}\n+- (IBAction)handleDoneButton:(id)sender {\n+    if (self.completionBlock)\n+        self.completionBlock(NO, [PlaceCategoryConverter categoryFromString:self.categoryView.text], self.informationView.text);\n+    \n+    [self removeFromSuperview];\n+}\n+\n+-(void)awakeFromNib {\n+    [super awakeFromNib];\n+    [self addDetailView];\n+}\n+\n+-(void)removeFromSuperview {\n+    [UIView animateWithDuration:0.4\n+                     animations:^{\n+                         CGSize rootViewSize = self.superview.bounds.size;\n+                         CGSize viewSize = self.bounds.size;","path":"PhotoMap/PhotoDetailView.m","position":85,"original_position":85,"commit_id":"c731c2782d2fa082263814844316369b5e0ece28","original_commit_id":"c731c2782d2fa082263814844316369b5e0ece28","user":{"login":"dmitryafanasiev","id":12828444,"avatar_url":"https://avatars.githubusercontent.com/u/12828444?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryafanasiev","html_url":"https://github.com/dmitryafanasiev","followers_url":"https://api.github.com/users/dmitryafanasiev/followers","following_url":"https://api.github.com/users/dmitryafanasiev/following{/other_user}","gists_url":"https://api.github.com/users/dmitryafanasiev/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryafanasiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryafanasiev/subscriptions","organizations_url":"https://api.github.com/users/dmitryafanasiev/orgs","repos_url":"https://api.github.com/users/dmitryafanasiev/repos","events_url":"https://api.github.com/users/dmitryafanasiev/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryafanasiev/received_events","type":"User","site_admin":false},"body":"What is the difference between frame and bounds?","created_at":"2017-01-09T08:43:23Z","updated_at":"2017-01-09T08:51:25Z","html_url":"https://github.com/MaxSkr/PhotoMap/pull/10#discussion_r95116002","pull_request_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/comments/95116002"},"html":{"href":"https://github.com/MaxSkr/PhotoMap/pull/10#discussion_r95116002"},"pull_request":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10","id":100482973,"html_url":"https://github.com/MaxSkr/PhotoMap/pull/10","diff_url":"https://github.com/MaxSkr/PhotoMap/pull/10.diff","patch_url":"https://github.com/MaxSkr/PhotoMap/pull/10.patch","issue_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/10","number":10,"state":"open","locked":false,"title":"Feature/task 16","user":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-06T16:16:19Z","updated_at":"2017-01-09T08:51:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fd4fd7c1bab2842bdd8bcbb2d39f77af6699237","assignee":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"assignees":[{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10/commits","review_comments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10/comments","review_comment_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/10/comments","statuses_url":"https://api.github.com/repos/MaxSkr/PhotoMap/statuses/c731c2782d2fa082263814844316369b5e0ece28","head":{"label":"MaxSkr:feature/Task-16","ref":"feature/Task-16","sha":"c731c2782d2fa082263814844316369b5e0ece28","user":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"repo":{"id":76033525,"name":"PhotoMap","full_name":"MaxSkr/PhotoMap","owner":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaxSkr/PhotoMap","description":null,"fork":false,"url":"https://api.github.com/repos/MaxSkr/PhotoMap","forks_url":"https://api.github.com/repos/MaxSkr/PhotoMap/forks","keys_url":"https://api.github.com/repos/MaxSkr/PhotoMap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaxSkr/PhotoMap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaxSkr/PhotoMap/teams","hooks_url":"https://api.github.com/repos/MaxSkr/PhotoMap/hooks","issue_events_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/events{/number}","events_url":"https://api.github.com/repos/MaxSkr/PhotoMap/events","assignees_url":"https://api.github.com/repos/MaxSkr/PhotoMap/assignees{/user}","branches_url":"https://api.github.com/repos/MaxSkr/PhotoMap/branches{/branch}","tags_url":"https://api.github.com/repos/MaxSkr/PhotoMap/tags","blobs_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaxSkr/PhotoMap/statuses/{sha}","languages_url":"https://api.github.com/repos/MaxSkr/PhotoMap/languages","stargazers_url":"https://api.github.com/repos/MaxSkr/PhotoMap/stargazers","contributors_url":"https://api.github.com/repos/MaxSkr/PhotoMap/contributors","subscribers_url":"https://api.github.com/repos/MaxSkr/PhotoMap/subscribers","subscription_url":"https://api.github.com/repos/MaxSkr/PhotoMap/subscription","commits_url":"https://api.github.com/repos/MaxSkr/PhotoMap/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaxSkr/PhotoMap/contents/{+path}","compare_url":"https://api.github.com/repos/MaxSkr/PhotoMap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaxSkr/PhotoMap/merges","archive_url":"https://api.github.com/repos/MaxSkr/PhotoMap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaxSkr/PhotoMap/downloads","issues_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues{/number}","pulls_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls{/number}","milestones_url":"https://api.github.com/repos/MaxSkr/PhotoMap/milestones{/number}","notifications_url":"https://api.github.com/repos/MaxSkr/PhotoMap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaxSkr/PhotoMap/labels{/name}","releases_url":"https://api.github.com/repos/MaxSkr/PhotoMap/releases{/id}","deployments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/deployments","created_at":"2016-12-09T12:27:19Z","updated_at":"2016-12-09T12:34:51Z","pushed_at":"2017-01-06T16:16:19Z","git_url":"git://github.com/MaxSkr/PhotoMap.git","ssh_url":"git@github.com:MaxSkr/PhotoMap.git","clone_url":"https://github.com/MaxSkr/PhotoMap.git","svn_url":"https://github.com/MaxSkr/PhotoMap","homepage":null,"size":9401,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"MaxSkr:develop","ref":"develop","sha":"beb7f562351995b1853e2d72133b2b82f31bfee2","user":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"repo":{"id":76033525,"name":"PhotoMap","full_name":"MaxSkr/PhotoMap","owner":{"login":"MaxSkr","id":6713237,"avatar_url":"https://avatars.githubusercontent.com/u/6713237?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxSkr","html_url":"https://github.com/MaxSkr","followers_url":"https://api.github.com/users/MaxSkr/followers","following_url":"https://api.github.com/users/MaxSkr/following{/other_user}","gists_url":"https://api.github.com/users/MaxSkr/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxSkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxSkr/subscriptions","organizations_url":"https://api.github.com/users/MaxSkr/orgs","repos_url":"https://api.github.com/users/MaxSkr/repos","events_url":"https://api.github.com/users/MaxSkr/events{/privacy}","received_events_url":"https://api.github.com/users/MaxSkr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaxSkr/PhotoMap","description":null,"fork":false,"url":"https://api.github.com/repos/MaxSkr/PhotoMap","forks_url":"https://api.github.com/repos/MaxSkr/PhotoMap/forks","keys_url":"https://api.github.com/repos/MaxSkr/PhotoMap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaxSkr/PhotoMap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaxSkr/PhotoMap/teams","hooks_url":"https://api.github.com/repos/MaxSkr/PhotoMap/hooks","issue_events_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/events{/number}","events_url":"https://api.github.com/repos/MaxSkr/PhotoMap/events","assignees_url":"https://api.github.com/repos/MaxSkr/PhotoMap/assignees{/user}","branches_url":"https://api.github.com/repos/MaxSkr/PhotoMap/branches{/branch}","tags_url":"https://api.github.com/repos/MaxSkr/PhotoMap/tags","blobs_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaxSkr/PhotoMap/statuses/{sha}","languages_url":"https://api.github.com/repos/MaxSkr/PhotoMap/languages","stargazers_url":"https://api.github.com/repos/MaxSkr/PhotoMap/stargazers","contributors_url":"https://api.github.com/repos/MaxSkr/PhotoMap/contributors","subscribers_url":"https://api.github.com/repos/MaxSkr/PhotoMap/subscribers","subscription_url":"https://api.github.com/repos/MaxSkr/PhotoMap/subscription","commits_url":"https://api.github.com/repos/MaxSkr/PhotoMap/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaxSkr/PhotoMap/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaxSkr/PhotoMap/contents/{+path}","compare_url":"https://api.github.com/repos/MaxSkr/PhotoMap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaxSkr/PhotoMap/merges","archive_url":"https://api.github.com/repos/MaxSkr/PhotoMap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaxSkr/PhotoMap/downloads","issues_url":"https://api.github.com/repos/MaxSkr/PhotoMap/issues{/number}","pulls_url":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls{/number}","milestones_url":"https://api.github.com/repos/MaxSkr/PhotoMap/milestones{/number}","notifications_url":"https://api.github.com/repos/MaxSkr/PhotoMap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaxSkr/PhotoMap/labels{/name}","releases_url":"https://api.github.com/repos/MaxSkr/PhotoMap/releases{/id}","deployments_url":"https://api.github.com/repos/MaxSkr/PhotoMap/deployments","created_at":"2016-12-09T12:27:19Z","updated_at":"2016-12-09T12:34:51Z","pushed_at":"2017-01-06T16:16:19Z","git_url":"git://github.com/MaxSkr/PhotoMap.git","ssh_url":"git@github.com:MaxSkr/PhotoMap.git","clone_url":"https://github.com/MaxSkr/PhotoMap.git","svn_url":"https://github.com/MaxSkr/PhotoMap","homepage":null,"size":9401,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10"},"html":{"href":"https://github.com/MaxSkr/PhotoMap/pull/10"},"issue":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/10"},"comments":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/MaxSkr/PhotoMap/statuses/c731c2782d2fa082263814844316369b5e0ece28"}}}}
{"actor":{"display_login":"dmitryafanasiev"}}