forked from pnbeldor/ICM_RoomFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICM_ViewController.m
41 lines (33 loc) · 983 Bytes
/
ICM_ViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// ICM_ViewController.m
// RoomFinder
//
// Created by Brett Nishikawa on 2013-10-17.
// Copyright (c) 2013 ICM. All rights reserved.
//
#import "ICM_ViewController.h"
#import "ICM_Node.h"
#import "ICM_Model.h"
@interface ICM_ViewController ()
@end
@implementation ICM_ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// [sharedModel setStartNode:[[sharedModel nodeList] objectAtIndex:3]];
// [sharedModel setEndNode:[[sharedModel nodeList] objectAtIndex:8]];
// [sharedModel setShortestPath:[sharedModel dijsktra:[sharedModel startNode] EndNode:[sharedModel endNode]]];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)viewWillAppear:(BOOL)animated
{
ICM_Model *sharedModel = [ICM_Model sharedModel];
[sharedModel setStartNode:nil];
[sharedModel setEndNode:nil];
}
@end