Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Files

Latest commit

b663e4b · Jul 12, 2017

History

History
22 lines (15 loc) · 1.05 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.05 KB

PCAiOSLib

Introduction

The PCAiOSLib Cocoapod is an easy way to use the PCA Predict or Addressy type-ahead search technology within an iOS application.

Quick Start

A View Controller of type PCALookupViewController can be initilized with a license key, and then presented to the user. This will display a form with the type-ahread seach technology:

@IBAction func lookupAddressPressed(_ sender: Any) {
  let viewController = PCALookupViewController(licenseKey: "0000-0000-0000-0000");
  viewController.addressDelegate = self;
  self.present(viewController, animated: true, completion: nil);
}

On close of this form, func didRecieveAddress can be used, to retrieve the address response of type RetrieveResponseItem.

Example

A working example of how to implement this Cocoapod is available here. Please note you will need to register with either PCA Predict or Addressy for a license key.