forked from nfarina/calloutview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMClassicCalloutView.h
39 lines (27 loc) · 1.11 KB
/
SMClassicCalloutView.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
#import <UIKit/UIKit.h>
#import "SMCalloutView.h"
/*
SMClassicCalloutView
--------------------
Created by Nick Farina ([email protected])
Version 1.1
*/
@protocol SMCalloutViewDelegate;
@class SMCalloutBackgroundView;
//
// Classic Callout view.
//
@interface SMClassicCalloutView : SMCalloutView
// One thing to note about the classic callout is that it will ignore the "constrainedInsets" property. That property is designed for iOS-7
// style presentation where your target view surface may be operlapped by navigation bars, tab bars, etc.
@end
//
// Classes responsible for drawing the background graphic with the pointy arrow.
//
// Draws a background composed of stretched prerendered images that you can customize. Uses the embedded iOS 6 graphics by default.
@interface SMCalloutImageBackgroundView : SMCalloutBackgroundView
@property (nonatomic, strong) UIImage *leftCapImage, *rightCapImage, *topAnchorImage, *bottomAnchorImage, *backgroundImage;
@end
// Draws a custom background matching the system background but can grow in height.
@interface SMCalloutDrawnBackgroundView : SMCalloutBackgroundView
@end