New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fade animation for 'Done' button... #3
Comments
Hi @teamtomsk, // Close SCLAlertView
- (void)hideView
{
[UIView animateWithDuration:0.2f animations:^{
self.shadowView.alpha = 0;
self.view.alpha = 0;
} completion:^(BOOL completed) {
[self.shadowView removeFromSuperview];
[self.view removeFromSuperview];
[self removeFromParentViewController];
}];
} What you can do ? SCLAlertView *alert = [[SCLAlertView alloc] init];
[alert addButton:@"Done/OK" actionBlock:^(void) {
//Do your custom fade animation
}];
[alert showSuccess:self title:@"Title" subTitle:@"Text." closeButtonTitle:nil duration:0.0f]; It's in my TODO list add custom animations, you can also fork and make a PR. |
I know what the issue is and will hopefully have a pull request with the fix in a bit. In a nutshell, |
Yep, @mamaral you're right it's a error, I should fix this over the week. Thanks for pointing out this error |
Ahh yes it appears to be related to these chunks of code:
and in
|
Yeah, I saw that! Should be fixed now |
Ahh, beat me to it.. I just put out #8 which I think more directly addresses the issue that there were two selectors being added to the done button, and that PR makes it so the default done button is created differently, so it doesn't have two selectors attached to it. |
This issue is fixed! Closing... |
I can't seem to be able to apply the fade duration to the default 'Done, 'OK' default button. Whatever I do, I just get an immediate removal from the superview.
Any ideas?
The text was updated successfully, but these errors were encountered: