iphone - Switch directly to the Game Center app -
i have method checks if player signed in game center or not. if not bring alert view button directly takes them game center app sign in. possible in way?
just open gamecenter url on button tap.
[[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"gamecenter:"]];
also put handle url in app delegate:
- (bool)application:(uiapplication *)application handleopenurl:(nsurl *)url { return yes; } - (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation { return yes; }
Comments
Post a Comment