Capturing with drawViewHierarchyInRect:afterScreenUpdates: does not accurately capture the keyboard background

Originator:dave.verwer
Number:rdar://15468172 Date Originated:14th November 2013
Status:Open Resolved:
Product:iOS SDK Product Version:7.0.3 (11B511)
Classification:UI/Usability Reproducible:Always
 
Summary:
Capturing a full screen screenshot using drawViewHierarchyInRect:afterScreenUpdates: does not accurately capture the background of the keyboard on iOS 7.

The keyboard background when captured by the user (by holding power and the home button) captures the blurred effect of the keyboard. When snapshotted with drawViewHierarchyInRect:afterScreenUpdates: the keyboard background is transparent but not blurred.

Steps to Reproduce:
1. Open attached project.
2. Tap any cell to bring up a keyboard.
3. Take a screenshot with the home button/power button combo (standard iOS way).
4. Take a screenshot by tapping the "Screenshot" button on the navigation bar.
5. View both screenshots in the photos app.

Expected Results:
Both keyboards should be captured with a blurred background.

Actual Results:
The screenshot taken programatically does not have a blurred background on the keyboard.

Version:
7.0.3 (11B511)

Notes:


Configuration:


Attachments:
'TransparentKeyboardBug.zip' was successfully uploaded.
https://github.com/daveverwer/TransparentKeyboardBug

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!