Sha256: 03e58598fbf6b2cf555c49611e271ad1fa889ce1b09825f4bc1760f5c2d789a4

Contents?: true

Size: 398 Bytes

Versions: 21

Compression:

Stored size: 398 Bytes

Contents

class UIViewController
  # Short hand to get the content frame
  # 
  # Return content frame: the application frame - navigation bar frame
  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
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bubble-wrap-1.3.0 motion/ui/ui_view_controller.rb
bubble-wrap-1.3.0.osx motion/ui/ui_view_controller.rb
bubble-wrap-1.2.0 motion/ui/ui_view_controller.rb
bubble-wrap-1.2.0.pre motion/ui/ui_view_controller.rb
bubble-wrap-1.1.5 motion/ui/ui_view_controller.rb
bubble-wrap-1.1.4 motion/ui/ui_view_controller.rb
bubble-wrap-1.1.3 motion/ui/ui_view_controller.rb
bubble-wrap-1.1.2 motion/ui/ui_view_controller.rb
bubble-wrap-1.1.1 motion/ui/ui_view_controller.rb
bubble-wrap-1.1.0 motion/ui/ui_view_controller.rb
bubble-wrap-1.0.0 motion/core/ui_view_controller.rb
bubble-wrap-1.0.0.pre.2 motion/core/ui_view_controller.rb
bubble-wrap-1.0.0.pre motion/core/ui_view_controller.rb
bubble-wrap-0.4.0 motion/core/ui_view_controller.rb
bubble-wrap-0.3.1 lib/bubble-wrap/ui_view_controller.rb
bubble-wrap-0.3.0 lib/bubble-wrap/ui_view_controller.rb
bubble-wrap-0.2.1 lib/bubble-wrap/ui_view_controller.rb
bubble-wrap-0.2.0 lib/bubble-wrap/ui_view_controller.rb
bubble-wrap-0.1.2 lib/bubble-wrap/ui_view_controller.rb
bubble-wrap-0.1.1 lib/bubble-wrap/ui_view_controller.rb