mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Rename AppDelegateParent to Delegate
This commit is contained in:
@@ -102,7 +102,8 @@ Run `bundle install` in Terminal to install ProMotion.
|
||||
Go into your app/app_delegate.rb file and add the following:
|
||||
|
||||
```ruby
|
||||
class AppDelegate < ProMotion::AppDelegateParent
|
||||
# Note: ProMotion::AppDelegateParent is an alias to ProMotion::Delegate
|
||||
class AppDelegate < ProMotion::Delegate
|
||||
def on_load(app, options)
|
||||
open HomeScreen.new(nav_bar: true)
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module ProMotion
|
||||
class AppDelegateParent
|
||||
class Delegate
|
||||
include ProMotion::ScreenTabs
|
||||
attr_accessor :window
|
||||
|
||||
@@ -60,4 +60,5 @@ module ProMotion
|
||||
@home_screen.nil? == false
|
||||
end
|
||||
end
|
||||
class AppDelegateParent < Delegate; end # For backwards compatibility
|
||||
end
|
||||
Reference in New Issue
Block a user