Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // ReviewEngine.h
- //
- // Created by Danilo Priore on 23/11/11.
- // Copyright (c) 2011 Prioregroup.com. All rights reserved.
- //
- // ReviewEngine simplifies the calling to app internet page for requesting a
- // user review of the app on the app store. To use it simply drop the two
- // files into your code and then add one method call to get it working.
- #define ITMS_APPS @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@"
- #import <UIKit/UIKit.h>
- #import "ReviewEngine.h"
- @interface ReviewEngine : NSObject
- + (void)gotoReviewWithAppID:(NSString*)appID;
- @end
- @implementation ReviewEngine
- + (void)gotoReviewWithAppID:(NSString*)appID {
- // id apple dell'app
- NSString *str = [NSString stringWithFormat:ITMS_APPS, appID];
- // richiama il browser
- NSURL *url = [NSURL URLWithString:str];
- [[UIApplication sharedApplication] openURL:url];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment