CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Apr 2015 |
Maintained by Elvis Nuñez.
| Depends on: | |
| Hex | >= 0 |
| HYPWebView | >= 0 |
| Signature | >= 0 |
| UIButton-ANDYHighlighted | >= 0 |
| UIViewController-HYPContainer | >= 0 |
Apps that require signatures in a contract, behold!
No more crazyness, Contract makes signing your soul away much easier.
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")
}
}Contract is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Contract'Hyper Interaktiv AS, [email protected]
Contract is available under the MIT license. See the LICENSE file for more info.