Sha256: b41c90e515a3da49894693c630ae7fad80aea02b9e3c6cc0314ea2a27d5deb2b

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

module Dynamics
    
  class Application
    attr_accessor :authentication, :layout, :window
  
    def initialize
      self.layout = ''
      self.authentication = false
    end
    
  protected
        
    def application(application, didFinishLaunchingWithOptions:launchOptions)
      @window =  HomeView.alloc.initWithFrame(UIScreen.mainScreen.bounds)  
      @window.makeKeyAndVisible   
      case @layout
      when 'Navigation'
        # @@Navigation@@
        # @@End@@       
      when 'Tab Bar'           
        # @@Tab Bar@@
        # @@End@@     
      when 'Tab Nav'           
        # @@Tab Nav@@
        # @@End@@                    
      else     
        @window.rootViewController = HomeController.alloc.initWithNibName(nil, bundle: nil)           
      end  
      true
    end    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamics-0.2.0 base/templates/application.rb