我想用Swift编程显示和隐藏音量HUD。
func hideHUD() {
let volume = MPVolumeView(frame: .zero)
view.addSubview(volume)
}
func showHUD() {
// ?
}
如何在不访问视图(通过添加隐藏的子视图)的情况下轻松隐藏HUD ?
如何再次展示HUD?
答案 0 :(得分:0)
#import <UIKit/UIKit.h>
//! Project version number for SubtleVolume.
FOUNDATION_EXPORT double SubtleVolumeVersionNumber;
//! Project version string for SubtleVolume.
FOUNDATION_EXPORT const unsigned char SubtleVolumeVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <SubtleVolume/PublicHeader.h>
使用折叠...