UIGraphicsBeginImageContext(self.bounds.size );
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *currentScreen = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
这里我无法获取更新暂存器的屏幕截图,但它没有显示在我的屏幕截图中![暂存器屏幕截图][1]