Screenshot Only Part of Screen - Swift

前端 未结 4 1085
时光说笑
时光说笑 2021-02-07 03:43

I\'m using this Swift code to take a screenshot of my app:

UIGraphicsBeginImageContextWithOptions(UIScreen.mainScreen().bounds.size, false, 0);
self.view.drawVi         


        
4条回答
  •  礼貌的吻别
    2021-02-07 03:58

    To snapshot a view containing a UIVisualEffect (Blur/Vibrancy), see my solution here: https://stackoverflow.com/a/33633386/802196

提交回复
热议问题