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