Ren Xiao
Ren Xiao
@e-massa i think the time depends on the video itself,for some video ,all frame is key frame,so it can be very exactly,but others may be not ,so the best solution...
try the code below ``` NSDictionary *settings = @{ AVVideoCodecKey: AVVideoCodecH264, AVVideoWidthKey: @(self.size.width * [UIScreen mainScreen].scale), AVVideoHeightKey: @(self.size.height* [UIScreen mainScreen].scale) }; ```
try the change code ``` - (UIImage *)imageFromView:(UIView *)view { UIGraphicsBeginImageContextWithOptions(view.frame.size , YES , 0 ); // if ([view respondsToSelector:@selector(drawViewHierarchyInRect:afterScreenUpdates:)]) { // [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES]; // } else { [view.layer...
i also can not generate pdf from an webView, follow the code, i add the save method in the - (void)saveWebViewAsPdf:(UIWebView *)webView toFile:(NSString *)file; And it work now. i am...