Quick Start Guide

From NimbleKit

Jump to: navigation, search

[edit] Getting Started With Nimble Kit

First of all, you need to install Nimble Kit. Go to the Home Page and download the latest version.

Open the downloaded DMG and double click the NimbleKit package. Wait for it to install, then open Xcode.

In Xcode, create a new project and in the "Choose a template for your new project" screen, choose the Nimble Kit Application option. Give the project a name (eg, iSupaSudukoBlaster) and up pops the main Xcode window.

On the left hand side under "Groups & Files" you'll see a folder titled HTML. In here is the "main.html" file that you will be using as the start of your app. Click on it and you'll see a basic html file with the NK js file linked. To see it working in the iPhone simulator included as part of Xcode, choose the OS version you wish to test on (eg, 3.0) from the top left of your Xcode window. Then hit "Build and Run" and you'll see the page in the simulator.

[edit] Testing on an iPhone / iPod

If you want to test on an actual iDevice, you need to purchase Nimble Kit and enter you serial that you receive, in you application delegate .m file in the classes folder. For example if our app is called "iSupaSudukoBlaster", you need to go to the "classes" folder and click on "iSupaSudukoBlasterAppDelegate.m".

You'll see a line like this:

Nimble *nimble = [[Nimble alloc] initWithRootPage:@"main.html" window:window serial:@""];

Just add you serial between the "s - eg:

Nimble *nimble = [[Nimble alloc] initWithRootPage:@"main.html" window:window serial:@"YOUR-SERIAL-HERE"];

You can now choose "iPhone Device" as an option and your app will open on your phone (as long as you have your provisioning profile installed)

Personal tools