summaryrefslogtreecommitdiff
path: root/platform/iphone/view_controller.mm
diff options
context:
space:
mode:
authorromulox_x <romulox_x@yahoo.com>2015-05-23 03:17:52 -0700
committerromulox_x <romulox_x@yahoo.com>2015-05-23 03:17:52 -0700
commit93e797f1649cfbdd5748956feb245ee27c75c996 (patch)
tree37eb6ae5036132e6d68f9003b111aff13ebe0967 /platform/iphone/view_controller.mm
parentf8f3362cab16ddfbc1d954ecadbccd4838200769 (diff)
Fixed null pointer bug in ios store. added functions to game center to reset the user's achievements, request all the achievements they've made progress on, request descriptions of all possible achievements, and show the built in game center overlay. Upgraded all (I think) deprecated functions to ios 6 versions. as per discussion with reduz on IRC, ios 6 is now the official lowest supported iOS version. compatibility could be added, but it's so obsolete, it's tough to argue for continuing to support it. some naming of functions and dictionary parameters might need to change. I just named them whatever made sense to me :)
Diffstat (limited to 'platform/iphone/view_controller.mm')
-rw-r--r--platform/iphone/view_controller.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/iphone/view_controller.mm b/platform/iphone/view_controller.mm
index a5ca689e61..f04264cfd9 100644
--- a/platform/iphone/view_controller.mm
+++ b/platform/iphone/view_controller.mm
@@ -124,10 +124,14 @@ int add_cmdline(int p_argc, char** p_args) {
}
};
-
- (BOOL)prefersStatusBarHidden
{
return YES;
}
+- (void) gameCenterViewControllerDidFinish:(GKGameCenterViewController*) gameCenterViewController {
+ printf("in finish");
+ [gameCenterViewController dismissViewControllerAnimated:YES completion:nil];
+}
+
@end