Sha256: 732e3e33c133ecf6f3d9df0c80e9d2f2ff716305769bba06b02fc0976aac7675
Contents?: true
Size: 449 Bytes
Versions: 16
Compression:
Stored size: 449 Bytes
Contents
module BubbleWrap module UIViewControllerWrapper # 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 end
Version data entries
16 entries across 16 versions & 1 rubygems