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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:18:56+00:00 2026-05-29T06:18:56+00:00

I use UINavigationController in my program,when I situated on forth or fifth controller in

  • 0

I use UINavigationController in my program,when I situated on forth or fifth controller in navigation stack,program recieve memory warning and I can’t go backwards. I press back button, navigation bar animation is taking place,but controller isn’t being popped,I still see old view. Can anyone help me handle this problem?

My subviews has property:

@property (nonatomic,retain) UITableView *searchTableView;
@property (nonatomic,retain) UISegmentedControl *categorySegmentedControl;
@property (nonatomic,retain) UISearchBar *searchTableBar;
@property (nonatomic,retain) UIView *footerView;
@property (nonatomic,retain) UINavigationItem *navigationItem;

My viewDidUnload method

- (void)viewDidUnload
{
  [super viewDidUnload];
  self.searchTableView = nil;
  self.categorySegmentedControl = nil;
  self.searchTableBar = nil;
  self.navigationItem = nil;
  self.footerView = nil;
}

My dealloc

-(void)dealloc
{
  [super dealloc];
  [searchTableView release];
  [categorySegmentedControl release];
  [searchTableBar release];
  [navigationItem release];
  [footerView release];
  [currentValues release];
}

And I had noticed strange regularity – this bug appears only when I move from view without tab bar to view with tab bar.

  • 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-29T06:18:57+00:00Added an answer on May 29, 2026 at 6:18 am

    It sounds like you may be doing some setup in your controller’s viewDidLoad and/or releasing stuff in viewDidUnload that should be done in initWithNibName:bundle and dealloc instead.

    viewDidLoad and viewDidUnload are not called when your controller is created and destroyed, they are called when the view inside your controller is created and destroyed, and this can happen at any time, especially if you receive a memory warning when the view controller is in the background (e.g. not the top view in a navigation controller).

    Make sure that you write your controllers in such a way that if the viewDidUnload gets called, or if the viewDidLoad gets called multiple times, you won’t lose data or break anything.

    Sorry if this answer is a bit vague, but if you post the code for your view controllers, I can probably give you more specific advice.

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

Sidebar

Related Questions

The root question is how many UIViewControllers can you push on the navigation stack?
is it UITabBarController possible to select the tab in code?like UINavigationController we can use
Does anyone know how to use an icon instead of text for the UINavigationController
use this website a lot but first time posting. My program creates a number
If I use a UINavigationController to display my UINavigationBar, this bar is much slimmer
I recently changed my app to use a UINavigationController, I was using a UINavigationBar
Okay so I am trying to use a simple UINavigationController with iPhone SDK in
I was wondering how can declare a custom UINavigationController in Xcode 4.2 ? I
I'm going to use an example to properly illustrate my confusion. I can't quite
I'm trying to use a UINavigationController but I'm uncertain how. Up till now (for

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.