Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Minor changes (indentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Jun 19, 2013
1 parent 40b09a7 commit b12ab1d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Classes/IOCIssuesController.m
Expand Up @@ -80,26 +80,28 @@ - (void)viewDidLoad {
#pragma mark Actions

- (IBAction)switchChanged:(id)sender {
[self displayCollection];
[self.tableView setContentOffset:CGPointZero animated:NO];
[self loadCollection];
[self displayCollection];
[self.tableView setContentOffset:CGPointZero animated:NO];
[self loadCollection];
}

- (IBAction)createIssue:(id)sender {
GHIssue *issue = [[GHIssue alloc] initWithRepository:self.repository];
IOCTitleBodyFormController *formController = [[IOCTitleBodyFormController alloc] initWithResource:issue name:@"issue"];
formController.delegate = self;
[self.navigationController pushViewController:formController animated:YES];
GHIssue *issue = [[GHIssue alloc] initWithRepository:self.repository];
IOCTitleBodyFormController *formController = [[IOCTitleBodyFormController alloc] initWithResource:issue name:@"issue"];
formController.delegate = self;
[self.navigationController pushViewController:formController animated:YES];
}

- (void)reloadIssues {
for (GHIssues *issues in self.objects) [issues markAsUnloaded];
for (GHIssues *issues in self.objects) [issues markAsUnloaded];
}

// delegation method for newly created issues
- (void)savedResource:(id)resource {
[[self.objects objectAtIndex:0] insertObject:resource atIndex:0];
[self.tableView reloadData];
GHIssues *openIssues = self.objects[0];
[openIssues insertObject:resource atIndex:0];
[openIssues markAsChanged];
[self.tableView reloadData];
}

#pragma mark TableView
Expand Down

0 comments on commit b12ab1d

Please sign in to comment.