Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:57:28+00:00 2026-06-09T21:57:28+00:00

They both specify a map center and how big the box is. So why

  • 0

They both specify a map center and how big the box is.

So why use both?

Some function in MKMapview use one and some use the other

  • (MKCoordinateRegion)regionThatFits:(MKCoordinateRegion)region
  • (MKMapRect)mapRectThatFits:(MKMapRect)mapRect
    edgePadding:(UIEdgeInsets)insets

What’s their difference?

More importantly, which one we should use to set the region we see?

There is no regionThatFits:edgePadding: by the way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:57:29+00:00Added an answer on June 9, 2026 at 9:57 pm

    A MKCoordinateRegion is defined using degrees coordinate of type CLLocationCoordinate2D which represents the latitude and longitude of a point on the surface of the globe.

    MKMapRect represents an actual flat rectangle defined with view coordinate (x, y) on your map view.

    You can use functions to do conversions for you like MKCoordinateRegionForMapRect

    See http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MapKitFunctionsReference/Reference/reference.html

    And to answer your final question, you would use MKCoordinateRegion which will define what region of the globe’s surface you want to see and by definition it will set your zoom level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use AngularJS with Django however they both use {{ }} as
I have a component that has a sub-component they both use a shared variable
They both seem exceedingly similar and I'm curious as to which package would be
I have 2 inputs: they both have a width: 100% , and the second
I have two CSS tranistions as below (they both cover the page and then
How to update a label by button clicks when they both are in different
So I'm using both xml files listed below with no luck. They both exist
Elementwise multiplication of two vectors is no problem if they both have the same
Sometimes I think that Controller and Command are the same because they both encapsulate
I've seen a couple of ways of doing theism they both seem to work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.