MPLocationPropertyView
@interface MPLocationPropertyView : UIView
Creates a view designed to contain an icon and some content (default is text) side by side.
-
Delegate object
Declaration
Objective-C
@property (readwrite, atomic) id<MPLocationPropertyViewDelegate> delegate;
Swift
weak var delegate: MPLocationPropertyViewDelegate! { get set }
-
Parent view reference.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *parentView;
Swift
var parentView: UIView! { get set }
-
Container view, holding the icon and content view.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *containerView;
Swift
var containerView: UIView! { get set }
-
The icon view, which normally will be placed to the left.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *iconView;
Swift
var iconView: UIView! { get set }
-
The content view, which normally will be placed to the right.
Declaration
Objective-C
@property (assign, readwrite, atomic) UIView *contentView;
Swift
var contentView: UIView! { get set }
-
The location property, that should be displayed in the view
Declaration
Objective-C
@property (assign, readwrite, atomic) MPLocationProperty *locationProperty;
Swift
var locationProperty: MPLocationProperty! { get set }
-
Initialization with location property, icon and whether to interpret the icon value as a reference or a font icon value.
Declaration
Objective-C
- (id)initWithProperty:(MPLocationProperty *)property andIcon:(NSString *)icon useFontIcon:(BOOL)useFont;
Swift
init!(property: MPLocationProperty!, andIcon icon: String!, useFontIcon useFont: Bool)
-
Add the view to it’s parent, setting the width to its parents width.
Declaration
Objective-C
- (void)addToView:(UIView *)view;
Swift
func add(to view: UIView!)
-
Attach a new location property to this view
Declaration
Objective-C
- (void)attachProperty:(MPLocationProperty *)property andIcon:(NSString *)icon;
Swift
func attach(_ property: MPLocationProperty!, andIcon icon: String!)
-
Declaration
Objective-C
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
Swift
func touchesBegan(_ touches: Set
-
Declaration
Objective-C
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
Swift
func touchesMoved(_ touches: Set
-
Declaration
Objective-C
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
Swift
func touchesEnded(_ touches: Set
-
Declaration
Objective-C
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
Swift
func touchesCancelled(_ touches: Set