【文件属性】:
文件名称:UIControl-Sound:一个简单的 UIControl 类别,用于为 UIButton、UISwitch、UISegmentedControl、UITextField 等 UI 控件添加声音
文件大小:43KB
文件格式:ZIP
更新时间:2021-07-04 09:02:11
Objective-C
#UIControl+声音
一个简单的 UIControl 类别,用于向 UI 控件(例如 UIButton、UISwitch、UISegmentedControl、UITextField 等)添加声音。
##它能做什么?
有了这个简单的类别。 您可以轻松地为应用程序中的所有(或仅一个)按钮、开关、文本字段(我的意思是 UIControls)添加声音,只需。
##包括什么?
3种方法。 简单的。 不言自明。
@interface UIControl (SoundForControlEvents)
- (void)addSoundWithContentsOfFile:(NSString *)soundFilePath forControlEvents:(UIControlEvents)controlEvents UI_APPEARANCE_SELECTOR;
- (void)re
【文件预览】:
UIControl-Sound-master
----.gitignore(232B)
----UIControl+SoundForControlEvents.h(978B)
----README.md(3KB)
----UIControl+SoundForControlEvents.m(5KB)
----UIControlSoundDemo()
--------UIControlSoundDemo.xcodeproj()
--------UIControlSoundDemo()