ZenPlayer is originally designed by simurai with CSS3 and JavaScript. This version of ZenPlayer is wrote with objective-c using ARC(Auto Reference Counting) for my application called walknote. Its graphics are re-drawn in bigger size, so it's suitable on retina display. It would be helpful for everyone who wants to implement cool design button with animation like ZenPlayer.
- Add ZenPlayerButton directory into your project
- Add QuartzCore.framework into your project
- Insert
#import "ZenPlayerButton.h"
into your code - Just add below code where you'd like:
// create new zen player button self.zenPlayerButton = [[ZenPlayerButton alloc] initWithFrame:CGRectMake(108, 178, 104, 104)]; // listening to tap event on the button [self.zenPlayerButton addTarget:self action:@selector(zenPlayerButtonDidTouchUpInside:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:self.zenPlayerButton];