NotPaid 1.0.1

NotPaid 1.0.1

woxtu维护。



NotPaid 1.0.1

  • woxtu

NotPaid

Carthage compatible CocoaPods

这是kleampa/not-paid的iOS版本:kleampa/not-paid.

客户端未付款吗?

为视图添加不透明度,并每天降低,直到应用程序完全消失。设置到期日并自定义应用程序完全消失之前提供的天数。

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd"
        let dueDate = dateFormatter.date(from: "2017-02-27")!

        NotPaid.configure(dueDate: dueDate, daysDeadline: 60)

        window?.backgroundColor = .white

        return true
    }
}

安装

Carthage

github "woxtu/NotPaid"

CocoaPods

pod 'NotPaid'

许可证

遵循MIT许可证。