Animation is great but the button itself no longer works.
Now my button won't work. For whatever reason after I removed the normal button from the original view controller, when I implemented this code I got the desired effect except that it no longer links to my other view. Check it out:
-
(void)viewDidLoad {
UIImage *buttonImage = [UIImage imageNamed:@"signin.png"]; CINBouncyButton *instaButton = [[CINBouncyButton alloc] initWithFrame:CGRectMake(47.0f, 267.0f, 226.0f, 34.0f) image:buttonImage andTitle:nil]; [instaButton setUserInteractionEnabled:YES];
[instaButton setBackgroundColor:[UIColor whiteColor]]; [instaButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:instaButton];
[super viewDidLoad];
What version are you on?
latest on all
On Sat, May 31, 2014 at 4:41 PM, Max Kramer [email protected] wrote:
What version are you on?
— Reply to this email directly or view it on GitHub https://github.com/MaxKramer/CINBouncyButton/issues/2#issuecomment-44760467 .
Best Regards,
Clayton
claytoncohn.me http://www.claytoncohn.me/ @claytoncohn http://www.twitter.com/claytoncohn
Please can you post your buttonClicked: method just so I can make sure there's a problem with the button, I'm sure I fixed a similar issue in ffaf9e8.
Ah, the problem is that Cocoapods haven't yet merged the latest podspec resulting in you having the previous version of the build. I'll add a fix to the README asap.
Thanks a lot brother, love the pod, much obliged.
On Sun, Jun 1, 2014 at 3:32 PM, Max Kramer [email protected] wrote:
Ah, the problem is that Cocoapods haven't yet merged the latest podspec resulting in you having the previous version of the build. I'll add a fix to the README asap.
— Reply to this email directly or view it on GitHub https://github.com/MaxKramer/CINBouncyButton/issues/2#issuecomment-44788410 .
Best Regards,
Clayton
claytoncohn.me http://www.claytoncohn.me/ @claytoncohn http://www.twitter.com/claytoncohn
@claytoncohn Run pod update and it should work fine! Cocoapod's trunk is now accepting spec updates, so there's no reason why it won't work.