Latest1.0.1
Homepagehttps://github.com/raphaelschaad/RSPlayPauseButton
LicensePublic domain
Platformsios 7.0, requires ARC
Authors

A UIControl with a play/pause icon that nicely morphs between the two.

RSPlayPauseButton Morph Animation

You can choose from two morphing styles: Split, and Split & Rotate.

If using CocoaPods, the quickest way to try it out is to type this on the command line:

$ pod try RSPlayPauseButton

To add it to your app, copy the class RSPlayPauseButton.h/.m into your Xcode project or add via CocoaPods by adding this to your Podfile:

pod 'RSPlayPauseButton', '~> 1.0'

In your code, #import "RSPlayPauseButton.h", create the control, and setup an action to toggle it:

    // ... e.g. in `-viewDidLoad:` ...
    RSPlayPauseButton *playPauseButton = [[RSPlayPauseButton alloc] init];
    [playPauseButton addTarget:self action:@selector(playPauseButtonDidPress:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:playPauseButton];
}

- (void)playPauseButtonDidPress:(RSPlayPauseButton *)playPauseButton {
    [playPauseButton setPaused:!playPauseButton.isPaused animated:YES];
}

Since I release RSPlayPauseButton as free and unencumbered software into the public domain you can do with it whatever you want including using it in any app on the App Store.

Feel free to reach out to @RaphaelSchaad and say hi.

Latest podspec

{
    "name": "RSPlayPauseButton",
    "version": "1.0.1",
    "summary": "Play/pause button that nicely morphs between the two states",
    "description": "                        A UIControl with a play/pause icon that nicely morphs between the two.n                        You can choose from [two morphing styles](http://vimeo.com/raphaelschaad/rsplaypausebutton): Split, and Split & Rotate.n",
    "homepage": "https://github.com/raphaelschaad/RSPlayPauseButton",
    "screenshots": "https://raw.githubusercontent.com/raphaelschaad/RSPlayPauseButton/master/Images/rsplaypausebutton-morph-animation.gif",
    "license": {
        "type": "Public domain",
        "file": "LICENSE.md"
    },
    "authors": {
        "Raphael Schaad": "[email protected]"
    },
    "social_media_url": "https://twitter.com/raphaelschaad",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/raphaelschaad/RSPlayPauseButton.git",
        "tag": "1.0.1"
    },
    "source_files": "RSPlayPauseButtonDemo/RSPlayPauseButton/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This