I am trying to play sound on iOS using AVAudioPlayer. I added AVFoundation.framework and MediaPlayer.framework and tried to import AVAudioPlayer.h (this part did not work), but I still cannot create an instance of the AVAudioPlayer class.
What am I doing wrong?
#import <AVFoundation/AVAudioPlayer.h> maybe?
#import <AVFoundation/AVAudioPlayer.h>
According to the Apple documentation , AVAudioPlayer is available with iOS 2.2.
Make sure you use the following import:
Source: https://habr.com/ru/post/890791/More articles:Need to understand some Java code - javaI keep getting HTML5 syntax errors with MVC3 - asp.net-mvcAre there any other requirements from Windows Live ID through the ACS 2.0 identity provider? - windowshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/890789/how-to-apply-an-array-of-classes-to-classlistcontains&usg=ALkJrhgv-376KRC_uzsGHUARi68eT2DybwHow to usein a placeholder on Rails 3? - placeholderSaving to a file using JavaScript / GreaseMonkey - javascriptHow to create an extensible list with Java Swing - javaHow to configure architecture for mvc project - c #How does git handle merge in merge? - gitFinding Rails 3 Examples Integration / Acceptance Tests with RSpec - ruby-on-rails-3All Articles