Sha256: 26e8f2824a636d8c1151aeded0bf19fa4116a989c3ecd1e5b3fe1905b5f62193
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
class CustomSplashViewController < UINavigationController attr_writer :splash_generator def viewDidLoad super UINavigationBar.appearance.barTintColor = UIColor.colorWithRed(0.28, green: 0.46, blue: 0.61, alpha: 1) controller = SplashController.alloc.init controller.splash_generator = @splash_generator self.setViewControllers([controller], animated: false) end end class SplashController < UIViewController attr_accessor :splash_generator def viewDidLoad self.view.backgroundColor = UIColor.whiteColor end def viewDidAppear(animated) super @splash_generator.take_snapshot end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-splash-1.0 | samples/sample-2/app/splash_view_controller.rb |