MPVolumeView in a UIAlertView?

后端 未结 4 740
旧时难觅i
旧时难觅i 2021-01-27 16:36

Is it possibe to put an MPVolumeView in a UIAlertView?

I have tried to put it inside of it, but it does not display. It may be the sizeToFit or

相关标签:
4条回答
  • 2021-01-27 16:46

    Take a look at MPVolumeSettingsAlertShow()

    Displays an alert panel for controlling the system volume.

    0 讨论(0)
  • 2021-01-27 16:47

    You might like to check out this recent blog post from Jeff LaMarche, should fill your needs - Custom Alert Views

    0 讨论(0)
  • 2021-01-27 16:51

    UIAlertView is a subclass of UIView, and UIView has a convenient addSubview: method. Have you tried that?

    0 讨论(0)
  • 2021-01-27 17:07

    I think initing the VolumeView with the VolumeAlert's frame would cause problems. Since VolumeAlert's frame is never being set (before VolumeView's frame is set), you can't depend on it being any size.

    0 讨论(0)
提交回复
热议问题