Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

setVisibleMapRect:... edgePadding requires iPhone Pragma for OSX #18

Closed

Description

@MacGCDB

Method setVisibleMapRect:(MKMapRect)mapRect edgePadding... requires an iPhone target pragma with a different definition for OSX. (iPhone: UIEdgeInsets, OSX: NSEdgeInsets)

Without the following, mbxmapkit.m would not compile with target OSX:

#if TARGET_OS_IPHONE
- (void)setVisibleMapRect:(MKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
#else
- (void)setVisibleMapRect:(MKMapRect)mapRect edgePadding:(NSEdgeInsets)insets animated:(BOOL)animate;
#endif

Activity

  1. MacGCDB commented on Dec 26, 2013

    @MacGCDB
    Author

    I found closed issue #13 which seems to be discussing (mostly) the same problem. For that issue, reverting(?) to 0.1.0 seemed to solve the issue. I'm not sure enough of the source code history to say if this issue is still relevant.

  2. incanus commented on Dec 26, 2013

    @incanus
    Contributor

    Your issue totally looks valid and I bet that was part of the issue in #13 as well. I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions