FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
UIView animation shortcuts. More...
#import <UIView.h>
Instance Methods | |
(void) | - setHidden:animated: |
Set whether the view is hidden. More... | |
Class Methods | |
(void) | + animateWithDefaultDurationAnimations: |
Animate changes to one or more views using the UIKit deafult animation duration UIAViewAnimationDefaultDuraton. More... | |
UIView animation shortcuts.
+ (void) animateWithDefaultDurationAnimations: | (UIAViewAnimationBlock) | animations |
Animate changes to one or more views using the UIKit deafult animation duration UIAViewAnimationDefaultDuraton.
animations | A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL. |
This method performs the specified animations immediately using the UIViewAnimationOptionCurveEaseInOut and UIViewAnimationOptionTransitionNone animation options. During an animation, user interactions are temporarily disabled for the views being animated. (Prior to iOS 5, user interactions are disabled for the entire application.)
- (void) setHidden: | (BOOL) | hidden | |
animated: | (BOOL) | animated | |
Set whether the view is hidden.
If 'animated' property is NO, this method calls -setHidden:; Otherwise, when starting, object's 'hidden' property is set to NO. If given hidden parameter is YES, 'hidden' property is set to YES after end of animation. This may cause confliction with other animations or accessors.
hidden | If YES, the view become hidden; otherwise, NO. |
animated | If YES, animates the transition; otherwise, does not. |