Latest 0.1.0
Homepage https://github.com/mikaoj/SwishControl
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, AudioToolbox
Authors

CI Status
Version
License
Platform

SwishControl is a category on UIControl for adding sound effects to UIControlEvents.

Usage

Import the SwishControl header

#import <SwishControl/SwishControl.h>

SwishControl uses AudioToolbox which supports aif, caf and wav.
This is how you add a sound effect for all UIButtons

NSString *clickPath = [[NSBundle mainBundle] pathForResource:@"click" ofType:@"aif"];
[[UIButton appearance] bs_setAudioWithPath:clickPath forEvent:UIControlEventTouchUpInside];

Of course it can be applied to a single UIControl as well, if you don’t want to set a sound for all of them.

Requirements

iOS, bananas and a bunch of sound effects

Installation

SwishControl is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SwishControl"

Author

Joakim Gyllström

License

SwishControl is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwishControl",
    "version": "0.1.0",
    "summary": "Attach sound effects to UIControls",
    "description": "                       A cateogory on UIControl for adding sound effects for different events.n",
    "homepage": "https://github.com/mikaoj/SwishControl",
    "license": "MIT",
    "authors": {
        "Joakim Gyllstrom": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mikaoj/SwishControl.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "private_header_files": "Pod/Classes/BSSoundContainer.h",
    "frameworks": [
        "UIKit",
        "AudioToolbox"
    ]
}

Pin It on Pinterest

Share This