FTMoreApps是一个iOS库,可以在你的应用中创建显示视图控制器,来展示你的app的开发者页面。
使用示例:
#import <FTMoreApps/FTMoreApps.h>...- (IBAction)buttonPressed:(id)sender { FTMoreApps *moreAppsManager = [FTMoreApps sharedManager]; [moreAppsManager presentMoreAppsInViewController:self developerId:@"318226300" // You can find your developer id in your iTunes link of your apps: https://itunes.apple.com/us/artist/felipe-tumonis/id318226300?mt=8 descriptionType:FTDescriptionTypeScreenshots completion:nil]; /* // OR [moreAppsManager presentMoreAppsInViewController:self appIds:@[@"app_id_1", @"app_id_2", ...] // The ids of the apps you want to show descriptionType:FTDescriptionTypeText completion:nil]; */ moreAppsManager.showActionButton = NO; moreAppsManager.showPrice = NO; moreAppsManager.title = NSLocalizedString(@"More apps", nil); moreAppsManager.willDismissBlock = ^{ NSLog(@"will dismiss more apps view controller"); }; moreAppsManager.didDismissBlock = ^{ NSLog(@"did dismiss more apps view controller"); }; moreAppsManager.didSelectAppBlock = ^(NSString *appId){ NSLog(@"did select app id: %@", appId); };}
评论