Circular UIButton subclass, with touch animations Simply init and set the colors, label, font, size and animation type:
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DMCircleButton
DMCircleButtonExample
README.md

README.md

Circular UIButton subclass, with touch animations Simply init and set the colors, label, font, size and animation type:

DMCircleButton *pulseButton = [DMCircleButton buttonWithLabel:@"Pulse"
                                                  backgroundColor:[UIColor redColor]
                                                        textColor:[UIColor whiteColor]
                                                             font:[UIFont systemFontOfSize:17.0f]
                                                             size:80.0f
                                                    animationType:DMCircleButtonAnimationTypePulse];

Or, init with an image, instead of a label:

DMCircleButton *imgButton = [DMCircleButton buttonWithImage:[UIImage imageNamed:@"image"]
                                                backgroundColor:[UIColor greenColor]
                                                           size:80.0f
                                                  animationType:DMCircleButtonAnimationTypePulse];