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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:39:21+00:00 2026-06-06T14:39:21+00:00

In an application having UITabBarController , I want to implement following scenario: When user

  • 0

In an application having UITabBarController, I want to implement following scenario:

When user is on ‘X’ Tab, he/she does something & then move to another tabs. And again he/she comes back to ‘X’ tab(say after 5minutes-> this is important as I may change 5min to 10min in future), then I want to show some message like your ‘Session is expired’.

Whenever user comes back ‘X’ Tab, it need to make server request to get response code. Depending upon that I want to show the pop-up ‘Session is expired’.

I thought following way to implement:

In every viewWillAppear: method of all views being loaded inside ‘X’ Tab viewController of UITabBarController I will make server request & check for response & perform operations accordingly.

But it will involve many server request which I want to avoid.

I am not able to conclude with solution. How can I achieve my requirement.?

Thanks a lot in advacnce.

  • 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-06T14:39:22+00:00Added an answer on June 6, 2026 at 2:39 pm

    You need to perform this only once in tab bar delegate method –

    - (void)tabBarController:(UITabBarController *)tabBarController 
        didSelectViewController:(UIViewController *)viewController
    

    Inside this method based upon the tab index you can have your code, you won’t need to write the code in several view controllers.

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

Sidebar

Related Questions

I have created an tab bar application having 3 tab. When I am launching
A small - little question. I have seen many application having buttons like following.
I had a C# .NET windows application having C# user interface and all the
I have a large web form application that I want to allow the user
I have an application that has a UITabBarController with two tabs, each having its
I have created an application having tab activity which in turn has 5 different
I've got a multi-user application having some critical data of the users. I am
A Python application (having a permission to be executed by the user) doesn't start
I have a Tab bar application having 6 tabs. When I debug and runthe
Having problems changing the initial tab bar selection on an application (i.e. the middle

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.