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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:02:01+00:00 2026-05-23T13:02:01+00:00

I am making a view based application in which the first controller is viewcontroller

  • 0

I am making a view based application in which the first controller is viewcontroller there is login screen ,after login the next view is tabbar controller and I have 2 tabbar items on that tabbar .
Until this everything works fine . Now when i switch between these two views the viewWillDisappear, viewDidUnload is not called of previous tab clicked .

P.S.Even the viewwillAppear was not called ,which i called it with the Default Notification. Don’t know what the issues are. Hope I am clear with my question.

  • 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-23T13:02:02+00:00Added an answer on May 23, 2026 at 1:02 pm

    First of all, when switching view in a UITabBarController, the viewDidUnload function is not called because the view is not actually unloaded. So, this is normal.

    What should work out of the box is viewWillAppear/viewDidDisappear. But there is a catch.
    Depending on how you show your views, it might be that viewWillAppear/viewDidDisappear are not called by the framework for you. For example, this happens if you add your view as a subview, but there are more cases. I don’t know how you display your tab bar, so cannot say anything more specific about it.

    The easy solution I suggest to fix this is overriding the tabBarController:didSelectViewController: selector in you tab bar controller delegate. From there you could implement you own logic or call viewDidDisappear.

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

Sidebar

Related Questions

hii... I am making a view based application in which I have tabbar controller
i am making a tabbar based app, but the problem is I have several
i'm making a navigation based application for iphone. one of my view controllers looks
I'm making a WPF application that is comprised of Screens (Presenter + View). I
I'm making a navigation based application. When the user selects a row on the
I have a tabbar application. Second tab had a drill down table list with
I have a custom view which is composed of a number of UIImageViews. These
I am making an nav based app. in my table view i am parsing
im making an application where i have to load my database from html file
I'm making an android application in which I want to show Punjabi text in

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.