このエラーが発生しています:
/: 「JSQSystemSoundPlayer」の目に見える @interface はセレクター「playAlertSoundWithFilename:fileExtension:」を宣言しません
でチャットアプリを作成していJSQMessagesViewController
ます。コードは次のとおりです。
if (asAlert) {
[[JSQSystemSoundPlayer sharedPlayer] playAlertSoundWithFilename:fileName fileExtension:kJSQSystemSoundTypeAIFF];
}
else {
[[JSQSystemSoundPlayer sharedPlayer] playSoundWithFilename:fileName fileExtension:kJSQSystemSoundTypeAIFF];
}
エラーは、if ステートメントと else ステートメントの両方にあります。これを修正するにはどうすればよいですか?