--- a/project_files/HedgewarsMobile/Classes/TableViewControllerWithDoneButton.m Fri Dec 29 22:37:31 2017 +0100
+++ b/project_files/HedgewarsMobile/Classes/TableViewControllerWithDoneButton.m Sat Dec 30 01:22:11 2017 +0100
@@ -38,15 +38,16 @@
- (UIBarButtonItem *)doneButton
{
- return [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
+ return [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
- action:@selector(dismissView)] autorelease];
+ action:@selector(dismissView)];
}
- (void)dismissView
{
[[AudioManagerController mainManager] playBackSound];
- [[[HedgewarsAppDelegate sharedAppDelegate] mainViewController] dismissViewControllerAnimated:YES completion:nil];
+ UIViewController *vc = [[HedgewarsAppDelegate sharedAppDelegate] mainViewController];
+ [vc dismissViewControllerAnimated:YES completion:nil];
}
@end