MPLocationView

@interface MPLocationView : UIScrollView <MPLocationPropertyViewDelegate>

Creates a specialized scroll view, designed to hold a locations details

  • Delegate protocol specification, to keep track of the tapping on a locations details.

    Declaration

    Objective-C

    @property (readwrite, atomic) id<MPLocationViewDelegate> mpdelegate;

    Swift

    weak var mpdelegate: MPLocationViewDelegate! { get set }
  • The array of the locations properties views.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSMutableArray *locationPropertyViews;

    Swift

    var locationPropertyViews: NSMutableArray! { get set }
  • The location that will be displayed in the view as layouted properties.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) MPLocation *location;

    Swift

    var location: MPLocation! { get set }
  • Initialization of the view using a location.

    Declaration

    Objective-C

    - (id)initWithLocation:(MPLocation *)location;

    Swift

    init!(location: MPLocation!)
  • Add a simple text detail. This will add a location property view to this view.

    Declaration

    Objective-C

    - (void)addDetail:(NSString *)value
             withType:(NSString *)type
              andIcon:(NSString *)icon
          useFontIcon:(BOOL)useFont;

    Swift

    func addDetail(_ value: String!, withType type: String!, andIcon icon: String!, useFontIcon useFont: Bool)