Why does my programmatically created screenshot look so bad on iOS 7?

后端 未结 5 903
梦毁少年i
梦毁少年i 2020-11-29 19:46

I am trying to implement sharing app with facebook. I used this code to take the screenshot:

CGSize imageSize = CGSizeMake(self.view.bounds.size.width, self.         


        
5条回答
  •  一生所求
    2020-11-29 19:57

    On iOS7 you can have glitches if you use

    [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES]
    

    during ongoing animation. Set afterScreenUpdates = NO to get rid of glitches.

提交回复
热议问题