I can show a waveform in AudioPlot Frame, but I could not get it in the form of pictures. EZAudio has such a method? And how can I use it?
Asked
Active
Viewed 187 times
1 Answers
1
EZAudio doesn't have such a method.
You can try this solution from Tim (copied below for convenience).
#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

Community
- 1
- 1

Quentin Hayot
- 7,786
- 6
- 45
- 62