Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 UINavigationBar 使用自定义按钮。并且点击的声音播放0-2次。
据我了解,解决此问题的最简单方法是禁用每个按钮的单击声音?所以请帮帮我
您可以通过代码参考播放声音点击这里
是的,您可以在禁用按钮声音后将其标签设置为 111,然后在操作方法之后检查
-(IBAction)buttonAction:(UIButton*)sender{ if(sender.tag == 111){ return; } //here is logic for sound play
}