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 7826707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:32:24+00:00 2026-06-02T09:32:24+00:00

I have a UITabBarController controlling a couple MKMapViews . How would I keep their

  • 0

I have a UITabBarController controlling a couple MKMapViews. How would I keep their state persistent with one another? I’ve tried setting up a singleton pattern, but they are still independent.

  • 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-02T09:32:25+00:00Added an answer on June 2, 2026 at 9:32 am

    I see two possible solutions for your problem

    1. You instantiate one (1x) MKMapView in a controller (maybe a singleton). Let’s say in your AppDelegate you have one MKMapView instance.

      • You use a UIViewController instance per Tab (so: many UIViewControllers but only one MKMapView in a controller.
      • You listen for - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController at your tabbar controller delegate.
      • when the user changes the tab, you place the single (1x) MKMapView on the appearing UIViewController’s view.
      • But here you will have the same content (Annotations, Regions, data at all)

         

    2. You can synchronize many MKMapView

      • Listen for MKMapView delegates (– mapView:regionWillChangeAnimated:, etc.) and synchronize the values to you other MKMapViews. You need to do that by Notifications (NSNotification) or by a controller.
      • this would give you more flexibility which values you’d like to sync and which values must be different from MKMapView to MKMapView.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an uitabbarcontroller which contains a couple uiViewControllers. When i show one of
I have a UITabBarController that I would like to assign to another object, so
I would like for one tab in a UITabBarController to have a fixed position
I have a UITabBarController with two different views to switch between. What I would
I have a UITabBarController with five views, one of which has a UINavigationController within
I have a UITabBarController. One of the tab shows application bookmarks, these bookmarks are
I have a UITabBarController that manages 5 View Controllers. I create their tab bar
I have UITabBarController with 2 tabs . One resizes just fine, when StatusBar size
I have a UITabBarController inside a UIPopoverController, which I am displaying solely from one
I have a UITabBarController which has on one of its tabs, a UINavigationController. The

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.