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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:01:13+00:00 2026-06-16T12:01:13+00:00

I have multiple tabs that each does something that may interfere with stuff going

  • 0

I have multiple tabs that each does something that may interfere with stuff going on the other tabs if not stopped. In case a user forgets to turn off function in one tab before going to the next tab, I want to know if there is a way to run a block of code from the UIViewController when the user clicks the other tab in the UITabBarController.

  • 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-16T12:01:14+00:00Added an answer on June 16, 2026 at 12:01 pm

    You should implement UITabBarControllerDelegate protocol in the view controller that has access to the business logic of your stuff. So you can do something when a user tries to click another tab.

    It is very likely that you need to implement:

     – tabBarController:shouldSelectViewController:
     – tabBarController:didSelectViewController:
    

    See documentations for UITabBarControllerDelegate.

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

Sidebar

Related Questions

I have a jQuery dialog that holds multiple tabs, each tab contains a form,
I have a set of Excel spreadsheets with multiple tabs which contains each one
I have a tab control in my WPF application with multiple tabs. Each tab
I have a form with multiple tabs. Each tab has its own <form> ,
I have a web page that has multiple tabs, which all do basically the
I have created an app with multiple tabs, each with its own layout. I
I will explain my problem. I have 4 tabs and each tab have multiple
In my application,I have four tabs at the bottom.Each tab has multiple activities.In order
I have a tabControl control with multiple tabs. For each tab, I am adding
I have a project in PHP that uses multiple tabs on a single page,

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.