Module: BubbleWrap::UIViewControllerWrapper

Defined in:
motion/ui/ui_view_controller_wrapper.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



6
7
8
9
10
11
# File 'motion/ui/ui_view_controller_wrapper.rb', line 6

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