Sha256: 5b02dc17c4980e20d7f8ce9ed5ed8e7c1bbe6dffc1358d3cab1ec9bcf9e7353a
Contents?: true
Size: 482 Bytes
Versions: 9
Compression:
Stored size: 482 Bytes
Contents
module UI class Application attr_reader :navigation @@instance = nil def initialize(navigation, context) @navigation = navigation context.window = proxy @@instance = self end def self.instance @@instance end def start proxy.rootViewController = @navigation.proxy proxy.makeKeyAndVisible true end def proxy @proxy ||= UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) end end end
Version data entries
9 entries across 9 versions & 1 rubygems