MAConfirmButton is an animated subclass of UIButton that replicates and improves upon the behavior of the AppStore “Buy Now” buttons. Built and animated with Core Animation layers, it is completely image free.
In the UIColor-Expanded category class that comes with the project I noticed a warning that says: Category is implementing a method which will also be implemented by its primary class.
Can you make this a subclass instead or how should I resolve this and make the warning disappear?
Has anyone else experienced any crashes from this if tapping quickly?
I use the button for buying objects in a game and if you tap quickly to buy more and more, it eventually crashes with this error:
*** -[MAConfirmButton performSelector:withObject:withObject:]: message sent to deallocated instance 0x1e04afd0
When triple tapping or more in button, then click outside of the button will make unexpected behaviour
I think it's because the cancelOverlay added more than once
I try to add this code before adding cancelOverlay button in touchesEnded function and it runs well :
if(cancelOverlay!=nil){
[cancelOverlay removeFromSuperview];
cancelOverlay = nil;
}
I am trying to add this to a subclassed UITableViewCell. I add the button in initWithCoder and set a temp title.
Now in cellForRowAtIndexPath I need to set the title depending on the row. Is there a method to change the title of the buttons once they've been created?
Double tapping (or tapping twice quickly) on an MAConfirmButton (from your Sample) causes the button to grow larger than expected in the confirm state.