I am working on a side project that it needs to draw on whatever it's displaying on the current screen. However, UIGraphicsBeginImageContextWithOptions
only gets me the content of that view only but the entire screen. The drawing view contains many more UI elements and those are not getting drawn. I am just wondering how I should handle it.
Here is how I used to get the current context(self is an instance of UIView):
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, [UIScreen mainScreen].scale);