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.
当用户使用硬件音量按钮更改音量时,我希望我的 MPVolumeView Slider Thumb 将自己动画到该位置。我怎样才能做到这一点?
创建一个 UIView mainVolumeSlider
mainVolumeSlider.backgroundColor = UIColor.clear let myVolumeView = MPVolumeView(frame: mainVolumeSlider.bounds) mainVolumeSlider.addSubview(myVolumeView)