MPInfoSnippetView
@interface MPInfoSnippetView : UIView
Create an location info view, designed to contain information from a tapped location on the map.
-
Info snippet view delegate
Declaration
Objective-C
@property (readwrite, atomic) id<MPInfoSnippetViewDelegate> delegate;
Swift
weak var delegate: MPInfoSnippetViewDelegate! { get set }
-
Set the height of the info snippet
Declaration
Objective-C
@property (assign, readwrite, atomic) int snippetHeight;
Swift
var snippetHeight: Int32 { get set }
-
Set the location which information will show in the view
Declaration
Objective-C
@property (assign, readwrite, atomic) MPLocation *location;
Swift
var location: MPLocation! { get set }
-
Parent view property
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *parentView;
Swift
var parentView: UIView! { get set }
-
View containing the child views
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *containerView;
Swift
var containerView: UIView! { get set }
-
Center view. To customize, just remove or add views inside this view.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *centerView;
Swift
var centerView: UIView! { get set }
-
Left view. To customize, just remove or add views inside this view.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *leftView;
Swift
var leftView: UIView! { get set }
-
Right view. To customize, just remove or add views inside this view.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *rightView;
Swift
var rightView: UIView! { get set }
-
Label view positioned top center (inside centerView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *centerTopTextView;
Swift
var centerTopTextView: UILabel! { get set }
-
Label view positioned top left (inside leftView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *leftTopTextView;
Swift
var leftTopTextView: UILabel! { get set }
-
Label view positioned top right (inside rightView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *rightTopTextView;
Swift
var rightTopTextView: UILabel! { get set }
-
Label view positioned bottom center (inside centerView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *centerBottomTextView;
Swift
var centerBottomTextView: UILabel! { get set }
-
Label view positioned bottom left (inside leftView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *leftBottomTextView;
Swift
var leftBottomTextView: UILabel! { get set }
-
Label view positioned bottom right (inside rightView)
Declaration
Objective-C
@property (assign, readwrite, atomic) UILabel *rightBottomTextView;
Swift
var rightBottomTextView: UILabel! { get set }
-
Add the info snippet to another view
Declaration
Objective-C
- (void)addToView:(UIView *)view;
Swift
func add(to view: UIView!)
-
Attach a new location object to the info snippet
Declaration
Objective-C
- (void)attachLocation:(MPLocation *)location;
Swift
func attachLocation(_ location: MPLocation!)
-
Attach a new location object to the info snippet and provide an initial user position (for displaying distances).
Declaration
Objective-C
- (void)attachLocation:(MPLocation *)location currentPosition:(MPLocation *)position;
Swift
func attachLocation(_ location: MPLocation!, currentPosition position: MPLocation!)
-
Enable the left view, disabled by default
Declaration
Objective-C
- (void)enableLeftView;
Swift
func enableLeftView()
-
Hide the info snippet
Declaration
Objective-C
- (void)hide;
Swift
func hide()
-
Show the info snippet, by animating from bottom and up
Declaration
Objective-C
- (void)show;
Swift
func show()
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView
-
Undocumented
Declaration
Objective-C
@interface MPInfoSnippetView : UIView