equal
deleted
inserted
replaced
36 } |
36 } |
37 } |
37 } |
38 |
38 |
39 - (UIBarButtonItem *)doneButton |
39 - (UIBarButtonItem *)doneButton |
40 { |
40 { |
41 return [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone |
41 return [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone |
42 target:self |
42 target:self |
43 action:@selector(dismissView)] autorelease]; |
43 action:@selector(dismissView)]; |
44 } |
44 } |
45 |
45 |
46 - (void)dismissView |
46 - (void)dismissView |
47 { |
47 { |
48 [[AudioManagerController mainManager] playBackSound]; |
48 [[AudioManagerController mainManager] playBackSound]; |
49 [[[HedgewarsAppDelegate sharedAppDelegate] mainViewController] dismissViewControllerAnimated:YES completion:nil]; |
49 UIViewController *vc = [[HedgewarsAppDelegate sharedAppDelegate] mainViewController]; |
|
50 [vc dismissViewControllerAnimated:YES completion:nil]; |
50 } |
51 } |
51 |
52 |
52 @end |
53 @end |