RedPotion 的 app_delegate.rb 與 home_screen.rb

potion_app/app_deligate.rb

classAppDelegate<PM::DelegateincludeCDQ# Remove this if you aren't using CDQ
status_bartrue,animation: :fadeApplicationStylesheet.new(nil).application_setupdefon_load(app,options)cdq.setup# Remove this if you aren't using CDQ
openHomeScreen.new(nav_bar: true)end# Remove this if you are only supporting portrait
defapplication(application,willChangeStatusBarOrientation: new_orientation,duration: duration)device.orientation=new_orientationendend