I have a screenshot of the entire screen, screenshot
, generated using the following:
let layer = UIApplication.sharedApplication().keyWindow!.l
I think your crop CGRect
is wrong.
let crop = CGRectMake(0,
0,
self.view.frame.size.width,
self.view.frame.size.height + self.navigationController!.navigationBar.frame.height - self.tabBar.frame.size.height
)
X: 0 and Y: 0 - start at 0, 0 respectively.
Width: Capture the view's entire width
Height: The entire view's height plus the height of the UINavigationBar
minus the height of the UITabBar
.