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

Commit 734b1de

Browse files
HenrikHenrik
authored andcommitted
Merge branch 'master' of https://github.com/PCAPredict/PCAiOSLib
2 parents fbc5473 + 0f941e4 commit 734b1de

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
11
# PCAiOSLib
2+
## Introduction
3+
4+
The PCAiOSLib Cocoapod is an easy way to use the PCA Predict or Addressy type-ahead search technology within an iOS application.
5+
6+
## Quick Start
7+
8+
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:
9+
10+
```swift
11+
@IBAction func lookupAddressPressed(_ sender: Any) {
12+
let viewController = PCALookupViewController(licenseKey: "0000-0000-0000-0000");
13+
viewController.addressDelegate = self;
14+
self.present(viewController, animated: true, completion: nil);
15+
}
16+
```
17+
18+
On close of this form, func didRecieveAddress can be used, to retrieve the address response of type RetrieveResponseItem.
19+
20+
## Example
21+
22+
A working example of how to implement this Cocoapod is coming soon. Please note you will need to register with either [PCA Predict](http://www.pcapredict.com "PCA Predict") or [Addressy](https://www.addressy.com "Addressy") for a license key.

0 commit comments

Comments
 (0)