How do I play a sound ONLY when the “back” button is tapped in a UINavigationBar?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To do so, you will need to replace usual “back” button with new one, with your code of playing sound:
But note, that it will not look like usual “back” button. It will be rectangle. If you what it to look like usual “back” button, implement it like a custom button with cusom image (like usual “back” button)