MPNotificationView icon indicating copy to clipboard operation
MPNotificationView copied to clipboard

iPad 3 - Slow Rendering Issue

Open hashaam opened this issue 13 years ago • 1 comments

On iPad 3 following line takes around 10-12 seconds to render as it is rendering in complete frame:

URL https://github.com/Moped/MPNotificationView/blob/master/MPNotificationView/MPNotificationView.m#L454

Code

UIGraphicsBeginImageContextWithOptions(layer.frame.size, NO, scale);

To fix this, we need to render only rect.size:

UIGraphicsBeginImageContextWithOptions(rect.size, NO, scale);

hashaam avatar Jan 30 '13 09:01 hashaam

good point! I tried that too but it broke other framing related stuff (like orientations, retina/non-retina) so I left it as it is for the time being but please do submit a pull request if you have a working fix.

thanks!

ekurutepe avatar Jan 30 '13 11:01 ekurutepe