FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIView.h
Go to the documentation of this file.
1 //
2 // UIView.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 13. 3. 30..
6 // Copyright (c) 2013 youknowone.org. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 
11 #define UIViewAutoresizingFlexibleVertical (UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleRightMargin)
12 #define UIViewAutoresizingFlexibleHorizontal (UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleBottomMargin)
13 #define UIViewAutoresizingFlexibleSize (UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight)
14 #define UIViewAutoresizingFlexibleAll (UIViewAutoresizingFlexibleVertical|UIViewAutoresizingFlexibleHorizontal)
15 
20 FOUNDATION_EXTERN const NSTimeInterval UIAViewAnimationDefaultDuraton;
21 
22 #if NS_BLOCKS_AVAILABLE
23 
26 typedef void (^UIAViewAnimationBlock)();
30 typedef void (^UIAViewAnimationCompletionBlock)(BOOL finished);
31 #endif
32 
36 @interface UIAViewHolder: NSObject
37 
38 @property(nonatomic, strong) IBOutlet id view;
39 
40 @end
41 
46 
51 - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
52 
53 - (instancetype)initWithPlatformSuffixedNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
54 
55 @end
56 
61 
62 #if NS_BLOCKS_AVAILABLE
63 
72 + (void)animateWithDefaultDurationAnimations:(UIAViewAnimationBlock)animations;
73 #endif
74 
83 - (void)setHidden:(BOOL)hidden animated:(BOOL)animated;
84 
85 @end
86 
91 
92 @property(assign) CGFloat borderWidth;
93 @property(copy) UIColor *borderColor;
94 @property(assign) CGFloat cornerRadius;
95 
96 @property(retain) UIColor *shadowColor;
97 @property(assign) CGSize shadowOffset;
98 @property(assign) float shadowAlpha;
99 @property(assign) CGFloat shadowRadius;
100 
101 @end
102 
103 
105 
109 @property(readonly) CGPoint frameEnd;
110 
111 @end
IBOutlet id view
Definition: UIView.h:38
See UIView layer for more informations.
Definition: UIView.h:90
void(^ UIAViewAnimationBlock)()
Animation block signature for UIView animation methods.
Definition: UIView.h:26
UIView loader from InterfaceBuilder.
Definition: UIView.h:45
A holder of UIView for interface builder instead of UIViewController.
Definition: UIView.h:36
FOUNDATION_EXTERN const NSTimeInterval UIAViewAnimationDefaultDuraton
The common animation duration constant of UIKit.
Definition: UIView.h:20
Definition: UIView.h:104
UIView animation shortcuts.
Definition: UIView.h:60
void(^ UIAViewAnimationCompletionBlock)(BOOL finished)
Animation completion block signature for UIView animation methods.
Definition: UIView.h:30