微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

FTMoreApps

程序名称:FTMoreApps

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

FTMoreApps 介绍

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);
    };

}

FTMoreApps 官网

https://github.com/ftapps/FTMoreApps

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐