Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Last active March 2, 2016 03:54
Show Gist options
  • Select an option

  • Save vikdenic/88a9adae0f7d9384ae4d to your computer and use it in GitHub Desktop.

Select an option

Save vikdenic/88a9adae0f7d9384ae4d to your computer and use it in GitHub Desktop.
Backendless Course, App 1, Lecture 1, Step 5
class AppDelegate: UIResponder, UIApplicationDelegate {
let APP_ID = "YOUR-APPLICATION-ID"
let SECRET_KEY = "YOUR-APPLICATION-IOS-SECRET-KEY"
let VERSION_NUM = "v1"
var backendless = Backendless.sharedInstance()
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
   backendless.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM)
   // If you plan to use Backendless Media Service, uncomment the following line (iOS ONLY!)
   // backendless.mediaService = MediaService()
   return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment