How to detect a screenshot from Simulator