2015-05-07 50 views

回答

1

EZAudio沒有這樣的方法。
你可以嘗試從Timthis solution(爲方便起見,下面複製)。

#import "QuartzCore/QuartzCore.h" after you added the framework to your project. Then do: 

UIGraphicsBeginImageContext(yourView.frame.size); 
[[yourView layer] renderInContext:UIGraphicsGetCurrentContext()]; 
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext(); 
UIGraphicsEndImageContext(); 

// The result is *screenshot 
+0

Thx!爲我工作! – Azot

+0

太棒了!玩這個很酷的lib :) –