在应用内部的应用商店窗口。
BTStoreView 完全支持 ARC。
iOS 5+
将 pod ‘BTStoreView’
添加到你的 Podfile,或将类文件(BTStoreView.{h,m})拖入你的项目中。
由于 iOS 7+,无法在模拟器运行应用程序时显示 StoreKit。
+ (instancetype)sharedInstance;
BTStoreView 单例方法。
- (void)openAppStorePageForAppId:(NSInteger)appId;
打开传递的 appId 的应用商店页面。
@property (nonatomic, weak) id<BTStoreViewDelegate> delegate;
BTStoreView Delegate 对象。
@property (nonatomic, assign) BOOL shouldDiscardCustomTintColor;
重置 [UINavigationBar appearance] 协议属性 barTintColor 到系统默认值。(默认 YES)。
- (void)BTStoreViewDidAppear;
BTStoreView 显示时的代理方法。
- (void)BTStoreViewDidDismiss;
BTStoreView 隐藏时的代理方法。
- (void)BTStoreViewFailedToPresentWithinApp;
BTStoreView 在应用内打开应用商店失败时的代理方法。
- (void)BTStoreViewFailedToOpenInAppStore;
BTStoreView 在应用商店应用中打开失败时的代理方法。