|
@@ -36,6 +36,11 @@ void iOS::_bind_methods() {
|
|
|
ClassDB::bind_method(D_METHOD("get_rate_url", "app_id"), &iOS::get_rate_url);
|
|
|
};
|
|
|
|
|
|
+void iOS::alert(const char* p_alert, const char* p_title) {
|
|
|
+ UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:[NSString stringWithUTF8String:p_title] message:[NSString stringWithUTF8String:p_alert] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] autorelease];
|
|
|
+ [alert show];
|
|
|
+}
|
|
|
+
|
|
|
String iOS::get_rate_url(int p_app_id) const {
|
|
|
String templ = "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID";
|
|
|
String templ_iOS7 = "itms-apps://itunes.apple.com/app/idAPP_ID";
|