MPFloorSelectorControl

@interface MPFloorSelectorControl : UIView <MPFloorSelectorProtocol>

Floor selection UI element. Can be added to the map, but should be linked to an MPBuilding to make sense.

  • Get the background color for the selected floor button.

    Declaration

    Objective-C

    + (UIColor *)selectedColor;

    Swift

    class func selectedColor() -> UIColor!
  • Set the background color for the selected floor button.

    Declaration

    Objective-C

    + (void)setSelectedColor:(UIColor *)value;

    Swift

    class func setSelectedColor(_ value: UIColor!)
  • Get the tint color for the floor buttons.

    Declaration

    Objective-C

    + (UIColor *)tintColor;

    Swift

    class func tintColor() -> UIColor!
  • Set the tint color for the floor buttons.

    Declaration

    Objective-C

    + (void)setTintColor:(UIColor *)value;

    Swift

    class func setTintColor(_ value: UIColor!)
  • The current floor.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSNumber *currentFloor;

    Swift

    var currentFloor: NSNumber! { get set }
  • Floor index to start from (typically 0).

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSNumber *fromFloorIndex;

    Swift

    var fromFloorIndex: NSNumber! { get set }
  • The number of floors.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSNumber *nFloors;

    Swift

    var nFloors: NSNumber! { get set }
  • The size of a single floor button (buttonSize x buttonSize).

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) NSNumber *buttonSize;

    Swift

    var buttonSize: NSNumber! { get set }
  • Array of the floor selector buttons.

    Declaration

    Objective-C

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

    Swift

    var buttons: NSMutableArray! { get set }
  • The top icon image.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UIImage *topIcon;

    Swift

    var topIcon: UIImage! { get set }
  • UIImageView containing the top image.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIImageView *topImageView;

    Swift

    weak var topImageView: UIImageView! { get }
  • An outer container view for the buttons.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UIView *container;

    Swift

    var container: UIView! { get set }
  • The view holding the floor selector.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UIView *parentView;

    Swift

    var parentView: UIView! { get set }
  • Method that fires when a floor button is pressed. - parameter: sender The button tapped

    Declaration

    Objective-C

    - (void)notifyFloorSelect:(id)sender;

    Swift

    func notifyFloorSelect(_ sender: Any!)

    Parameters

    sender

    The button tapped

  • Add the floor selector to a map. - parameter: map The map that should hold the floor selector.

    Declaration

    Objective-C

    - (void)addToMap:(id)map;

    Swift

    func add(toMap map: Any!)

    Parameters

    map

    The map that should hold the floor selector.

  • Add the floor selector to a view. - parameter: view The view that should hold the floor selector.

    Declaration

    Objective-C

    - (void)addToView:(UIView *)view;

    Swift

    func add(to view: UIView!)

    Parameters

    view

    The view that should hold the floor selector.

  • Update the floor selector view frame. Needed upon switch to landscape/portrait

    Declaration

    Objective-C

    - (void)updateFrame;

    Swift

    func updateFrame()
  • The maximum height that the floor selector may occupy

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat maxHeight;

    Swift

    var maxHeight: CGFloat { get set }
  • Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL disableAutomaticLayoutManagement;

    Swift

    var disableAutomaticLayoutManagement: Bool { get set }