RubyMotion for Rails Developers: View Controllers in depth (Part 1 & 2)
RubyMotion for Rails Developers: View Controllers in depth (Part 1) - MotionInMotion
RubyMotion for Rails Developers: View Controllers in depth (Part 2) - MotionInMotion
View Controllers in depth (Part 1)
- StatusBar configuration
- preferredStatusBarStyle
- UIStatusBarStyleLightContent
- status bar is transparent
- preferredStatusBarStyle
- @window.rootViewController = UINavigationController.alloc.initWithRootViewController(MainViewController.new)
- def add_task
- navigationController.pushViewController(MainViewController.new, animated: true)
- def add_task
View Controllers in depth (Part 2)
- ViewController life cycle
- viewDidLoad
- viewWillAppear
- viewDidAppear
- viewWillDisappear
- viewDidDisappear
- iPhone開発 UIViewController ライフサイクル viewDidLoad viewWillAppear viewDidAppear viewWillDisappear viewDidDisappear ios 逆引き サンプル | Linux & iOS & Android Labs
- MainViewController
- def viewDidLoad
- @button.addTarget(self, action: :add_task, forControlEvents: UIControlEventTouchUpInside)
- def add_task
- vc = AddTaskViewController.new
- vc.task = task
- navigationController.pushViewController(vc, animated: true)
- def viewDidLoad