CINBouncyButton icon indicating copy to clipboard operation
CINBouncyButton copied to clipboard

Animation is great but the button itself no longer works.

Open claytoncohn opened this issue 12 years ago • 6 comments

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];

claytoncohn avatar May 30 '14 18:05 claytoncohn

What version are you on?

maxkramer avatar May 31 '14 21:05 maxkramer

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

claytoncohn avatar Jun 01 '14 19:06 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.

maxkramer avatar Jun 01 '14 20:06 maxkramer

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.

maxkramer avatar Jun 01 '14 20:06 maxkramer

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 avatar Jun 02 '14 01:06 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.

maxkramer avatar Jun 02 '14 23:06 maxkramer