Class: UIViewController

Inherits:
Object
  • Object
show all
Defined in:
motion/ui/ui_view_controller.rb

Instance Method Summary collapse

Instance Method Details

#content_frameObject

Short hand to get the content frame

Return content frame: the application frame - navigation bar frame


5
6
7
8
9
10
# File 'motion/ui/ui_view_controller.rb', line 5

def content_frame
  app_frame = App.frame
  navbar_height = self.navigationController.nil? ? 
    0 : self.navigationController.navigationBar.frame.size.height
  CGRectMake(0, 0, app_frame.size.width, app_frame.size.height - navbar_height)
end