forked from smartapps-fr/DDPopoverBackgroundView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDDPopoverBackgroundView.h
executable file
·48 lines (35 loc) · 1.39 KB
/
DDPopoverBackgroundView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// DDPopoverBackgroundView.h
// https://github.com/ddebin/DDPopoverBackgroundView
//
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#import <UIKit/UIKit.h>
#import <UIKit/UIPopoverBackgroundView.h>
@interface DDPopoverBackgroundView : UIPopoverBackgroundView
{
CGFloat arrowOffset;
UIPopoverArrowDirection arrowDirection;
UIImageView *arrowImageView;
UIImageView *popoverBackgroundImageView;
}
@property (nonatomic, readwrite) CGFloat arrowOffset;
@property (nonatomic, readwrite) UIPopoverArrowDirection arrowDirection;
// adjust content inset (~ border width)
+ (void)setContentInset:(CGFloat)contentInset;
// set tint color used for arrow and popover background
+ (void)setTintColor:(UIColor *)tintColor;
// enable/disable shadow under popover
+ (void)setShadowEnabled:(BOOL)shadowEnabled;
// set arrow width (base) / height
+ (void)setArrowBase:(CGFloat)arrowBase;
+ (void)setArrowHeight:(CGFloat)arrowHeight;
// set custom images for background and top/right/bottom/left arrows
+ (void)setBackgroundImage:(UIImage *)background top:(UIImage *)top right:(UIImage *)right bottom:(UIImage *)bottom left:(UIImage *)left;
// rebuild pre-rendered arrow/background images
+ (void)rebuildArrowImages;
// Set the corners radius
+ (CGFloat)backgroundImageCornerRadius;
+ (void)setBackgroundImageCornerRadius:(CGFloat)aCornerRadius;
@end