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

  • Home
  • SEARCH
  • 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 6096243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:54:16+00:00 2026-05-23T12:54:16+00:00

I am just starting out on iOS(from Android) and I am having trouble figuring

  • 0

I am just starting out on iOS(from Android) and I am having trouble figuring out how to pass data between views in tabs. I’ve included pictures to describe my question in a little more detail; how can I get the map type to change when one of the selectors is changed or the user location to appear/disappear when the boolean switch is ticked?

One tab is a map tab:

Map

The Other is a selector:

Selector

  • 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-05-23T12:54:16+00:00Added an answer on May 23, 2026 at 12:54 pm

    The quick answer is that you have the view controllers talk to each other.

    Edit: I knew I’d have to come back.

    It depends on where you are starting from.

    But This thread seems to be popular and has an example project. It might need tweaking to use a more modern iOS version – but it does provide the general idea.

    One way to do it in your application, is to have properties on the view controller that shows the map as to the type of view it displays, and whether or not the current location is shown. Then, from your selector‘s view controller set those properties.

    How do you get the map’s view controller – pass it to the selector‘s controller at creation. Resist the temptation to have the map controller be a property of the Application delegate. It’s an easy way of passing it around, but it breaks encapsulation IMO.

    As an aside.

    As you progress, you’ll realise that the way to do this is to have the controls overlaid on the map view as subviews. Not only is that a better UI (all the changes can be made in place), but then as you are on the same view, you don’t need to use a different view controller, and there is no need to be passing around object pointers. 🙂

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

Sidebar

Related Questions

I'm just starting out with iOS programming. I'm wondering why view is an outlet
I'm just starting out learning ASP.NET. From what I understand, ASP.NET differs from old
I am just starting out programming on Android. What is the most computationally expensive
I am just starting out with RoR, and I'm having some problems. I'm using
I'm just starting out with node.js, express and ejs. And I'm having a hard
Just starting out in asp.net. Have just created a login.aspx page in my site
I am just starting out with DI & unit testing and have hit a
I am just starting out with Silverlight (2 RC0) and can’t seem to get
So I am just starting out developing PHP web applications and have finished setting
I'm just starting out playing around with Linq Expressions and I've hit a wall.

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.