合同 0.1.0

Contract 0.1.0

测试测试
语言语言 Obj-CObjective C
许可 MIT
发布最新发布2015年4月

Elvis Nuñez 维护。



 
依赖
Hex>= 0
HYPWebView>= 0
Signature>= 0
UIButton-ANDYHighlighted>= 0
UIViewController-HYPContainer>= 0
 

Contract 0.1.0

需要合同中签名的应用程序,看看这里!

不再杂乱无章,Contract 使您签名变得更加容易。

使用方法

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, HYPContractViewControllerDelegate {

  var window: UIWindow?

  func application(
    application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
      window = UIWindow(frame: UIScreen.mainScreen().bounds)

      let contractController = HYPContractViewController(
        contractURL: "http://ga.berkeley.edu/wp-content/uploads/2015/02/pdf-sample.pdf",
        firstPartyName: "CEO",
        secondPartyName: "Michael Minion",
        needsSignature: true)

      contractController.delegate = self

      if let window = self.window {
        window.rootViewController = UINavigationController(rootViewController: contractController)
        window.makeKeyAndVisible()
      }

      return true
  }

  func contractControllerDidFinish(
    contractController: HYPContractViewController!,
    withFirstPartySignature firstPartySignature: UIImage!,
    andSecondPartySignature secondPartySignature: UIImage!) {
      println("finished")
  }

  func contractControllerDidDismiss(contractController: HYPContractViewController!) {
    println("dismiss")
  }
}

外观

Demo

安装

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

pod 'Contract'

作者

Hyper Interaktiv AS,[email protected]

许可

Contract 根据 MIT 许可提供。有关更多信息,请参阅 LICENSE 文件。