Reputation: 9064
I'm looking to make a UIImageView fill with color based on how much sound there is. The level of sound should indicate the height that the color fills up in the image.
How can I visualize the audio level like this?
Upvotes: 0
Views: 63
Reputation: 535850
Take a look at https://developer.apple.com/library/ios/samplecode/SpeakHere/Listings/AudioViews_LevelMeter_m.html for an example of how to draw in response to audio level. It isn't identical to your proposed interface but the underlying principles (redrawing in response to level metering) are exactly the same.
Upvotes: 1