iphone - UIGetScreenImage - Private API -
I was using UIGetScreenImage in my app, however, everyone knows that the apps using the Apple Private API Dismissing. I have researched alternative ways of doing this with lip, but you get different size images as well as troubled snapshot sounds. Microsoft Tag Quickmark and Radlaser all use UIGetScreenImage (this is obvious) but I want to do it legally. Anyone there have been any suggestions so much appreciated.
This can work ... I think this was the answer to another SO question.
- (UIImage *) Capture View: (UIView *) See {CGRK screenprint = [[USScreen main screen] border]; UIGraphicsBeginImageContext (screenRect.size); CGContextRef ctx = UIGraphicsGetCurrentContext (); [[UIColor blackColor] set]; CGContextFillRect (CTX, ScreenTrack); [View.layer renderInContext: ctx]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); New image refund; }
Comments
Post a Comment