I'm using this code to save my screen shot and its working:
Code:
UIGraphicsBeginImageContext(Background.bounds.size);
[Background.window.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
It works but I'm getting warnings now:
warning: no '-renderInContext:' method found
warning: (Messages without a matching method signature
warning: incomplete implementation of class 'VCMenu'
warning: method definition for '-renderInContext' not found