When the following code is executed, what it will do? funcfunc() { let layer = UIApplication.sharedApplication().keyWindow!.layer let scale = UIScreen.mainScreen().scale UIGraphicsBeginImageContextWithOptions(layer.frame.size, false, scale); layer.renderInContext(UIGraphicsGetCurrentContext()!) let s = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() UIImageWriteToSavedPhotosAlbum(s, nil, nil, nil) }
Correct Answer: It gets full screenshot and will save it as JPG file in photo folder
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions