summaryrefslogtreecommitdiff
path: root/platform/iphone/view_controller.mm
diff options
context:
space:
mode:
authorpunto- <ariel@okamstudio.com>2015-05-26 11:41:56 -0300
committerpunto- <ariel@okamstudio.com>2015-05-26 11:41:56 -0300
commit70edfcdc8d2b6fa6cd541cb3afb0f4ddd030b4bf (patch)
tree18b71872709cd52ae6d0e85bc724a12b397f53f1 /platform/iphone/view_controller.mm
parentb1b7826ea7e04a3eb4d9b3d011e9a2a8dff5db03 (diff)
parent95cd9b1ad54f799d9513911e4cebc5bafc135d97 (diff)
Merge pull request #1966 from romulox-x/iosServicesAdditions
Improved iOS Game Center functions
Diffstat (limited to 'platform/iphone/view_controller.mm')
-rw-r--r--platform/iphone/view_controller.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/iphone/view_controller.mm b/platform/iphone/view_controller.mm
index a5ca689e61..bc9950979e 100644
--- a/platform/iphone/view_controller.mm
+++ b/platform/iphone/view_controller.mm
@@ -124,10 +124,15 @@ int add_cmdline(int p_argc, char** p_args) {
}
};
-
- (BOOL)prefersStatusBarHidden
{
return YES;
}
+- (void) gameCenterViewControllerDidFinish:(GKGameCenterViewController*) gameCenterViewController {
+ //[gameCenterViewController dismissViewControllerAnimated:YES completion:^{GameCenter::get_singleton()->game_center_closed();}];//version for signaling when overlay is completely gone
+ GameCenter::get_singleton()->game_center_closed();
+ [gameCenterViewController dismissViewControllerAnimated:YES completion:nil];
+}
+
@end