MBRateApp 0.1.3

MBRateApp 0.1.3

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布最近发布2016年4月
SPM支持 SPM

Mati Bot 维护。



MBRateApp 0.1.3

  • 作者:
  • Mati Bot

MBRateApp

用法

要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install

自定义

var rateUsInfo = MBRateUsInfo() //get the default settings

//override any attribute
rateUsInfo.title = "Enjoying The League?"
rateUsInfo.titleImage = UIImage(named: "icon")
rateUsInfo.itunesId = "893653132"

//set the value in the shared instance
MBRateUs.sharedInstance.rateUsInfo = rateUsInfo

展示

MBRateUs.sharedInstance.showRateUs(self
        , positiveBlock: { () -> Void in
        //code to run when the user chose more than 3 stars and chose to rate in the app store
        }, negativeBlock: { () -> Void in
        //code to run when the user chose less than 4 stars and chose to send feedback
        }) { () -> Void in
        //code to run when the user dismissed that screen without choosing anything
}

要求

安装

MBRateApp 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod "MBRateApp"

作者

Mati Bot,[email protected],@b0tnik

许可证

MBRateApp 在 MIT 许可证下可用。查看 LICENSE 文件以获取更多信息。