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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:26:04+00:00 2026-05-24T23:26:04+00:00

I have 2 views and 1 viewController : In the first view I have

  • 0

I have 2 views and 1 viewController :

In the first view I have added another view:

[self.view addSubView:self.secondView];

In Second View when i Press Back then i have remove the second view for back to the first View

[self.view removeFromSuperView];

but in my first view there is the UITableView I have to use [UITableView reloadData]; method of UITableView but I don’t know which method is called when secondView is removed.

My main objective is to call some method when I remove the second view and call any method which will reload the data.

I have tried many times but to call the method and delegates of the view but nothing happen, viewDidLoad or viewWillAppear or viewDidAppear no method is catch for the second time.. please tell me…

Thanking in advance.

  • 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-24T23:26:05+00:00Added an answer on May 24, 2026 at 11:26 pm

    If you want the viewWill... methods to run, you should use one of the view controller or modal view display methods rather than manually adding the subview. For example, using a UINavigationController is probably the best approach for what you’re describing. Alternately, you can use the presentModalViewController:animated: method to present a modal view.

    See the View Controller Programming Guide for more information on handling transitions between views.

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

Sidebar

Related Questions

I have three view controllers. I used the flipsideproject template and then added another
I have two view controllers. I'm on first, and when I press the button,
I have a tabBarController with 4 views. I wanted the second view to rotate,
I have a viewController (Planner) that loads two view controllers (InfoEditor and MonthlyPlan) when
Another cry for help about this warning. First of all I have looked at
I have some views that start off the screen and then slide in and
I am making a view based application in which the first controller is viewcontroller
I have a two views, 1st is a simple view with some introduction about
I have the following code in my viewWillAppear: - (void) viewWillAppear:(BOOL)animated{ self.view.backgroundColor = [UIColor
I have a three view tab bar app the second view of which I

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.