From c67563b50601d2f829c5cf451aa045d4e14684c9 Mon Sep 17 00:00:00 2001 From: Jamon Holmgren Date: Thu, 16 May 2013 10:00:34 -0700 Subject: [PATCH] Clarified app_delegate code --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90fee9a..144ef80 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ gem "ProMotion", "~> 0.6.0" Run `bundle install` in Terminal to install ProMotion. -Go into your app/app_delegate.rb file and add the following: +Go into your app/app_delegate.rb file and replace everything with the following: ```ruby class AppDelegate < ProMotion::Delegate @@ -121,6 +121,9 @@ class AppDelegate < ProMotion::Delegate end ``` +Make sure you remove the `didFinishLoadingWithOptions` method or call `super` in it. Otherwise +ProMotion won't get set up and `on_load` won't be called. + Create a folder in `/app` named `screens`. Create a file in that folder named `home_screen.rb`. Now drop in this code: