How to add tooltips to iOS Apps with Pointzi
Coding tooltips can be repetitive and boring or you can provide tips that popup without writing code using the Pointzi SDK. It will take about 15minutes.
Step 1: Get an account on the Pointzi Dashboard, create an App and note your app_key, you'll need it below.
Step 2: In pod file of your Application's Podfile, add one line to add the Pointzi binary and other dependencies automatically.
pod "pointzi"
On the first time, in your shell run:
$ pod install
Step 3: In your Application launch function, add pointzi registration.
#import "StreetHawkCore_Pointzi.h"
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[StreetHawk registerInstallForApp:@"<Your app_key from Pointzi Dashboard>" withDebugMode:YES];
return YES;
}
Step 4: Replace base class of your view controller.
Simply replace the base ViewController classes and inherit from classes as shown below.
From | To |
---|---|
UITableViewController | StreetHawkBaseTableViewController |
UIViewController | StreetHawkBaseViewController |
UICollectionViewController | StreetHawkBaseCollectionViewController |
If you have Swift file, in your Swift bridge header file, named <Your_Project_Name>-Bridging-Header.h, add:
#import "StreetHawkCore_Pointzi.h"
Step 5: Get your App running, go back to the dashboard and follow the wizard to create your tips and view on your phone.