UIButton attenuation and output

In my iPad app, I need to display cover artwork for publications. The user can click on the cover to get detailed information.

I was thinking of displaying UIButtons as custom cover buttons as a background image. Is it possible to fade out UIButtons? The user can select the publication category to display, and he changes the category in which I would like to release some publications.

+5
source share
2 answers

alphaAny property UIView(which includes UIButton) can be animated using the block-based animation method:

[UIView animateWithDuration:0.25 animations:^{myButton.alpha = 0.0;}];

0,25 . alpha 1.0, .

+38

, ,

[UIView
        animateWithDuration:5.0
        delay:0.0
        options:UIViewAnimationOptionAllowUserInteraction
        animations:^{ button.alpha = 0.0; }
        completion:nil];
+6

All Articles