Objective-C Tips & Trick - Prioregroup.com
[Objective-C] ReviewEngine
       
back

//
//  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






Copyright © 1996-2018 Centro Studi Informatica di Danilo Priore. All rights reserved. P.I.10149810581.
prioregroup.com