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

  • Home
  • SEARCH
  • 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 8681743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:35:24+00:00 2026-06-12T21:35:24+00:00

So I have a table view controller that shows pictures then when you select

  • 0

So I have a table view controller that shows pictures then when you select a cell it opens a UIViewController with an image view and a navigation bar with buttons to go back or to save the image. The problem is that I’m getting a second title bar. I can’t seem to remove it, I can’t change the text, and to be honest I can’t seem to find where it’s coming from. When I select it it selects the navigation bar but if I delete or hide the navigation bar it hides the bar with the buttons and this “Title” bar stays.

Here’s what it looks like running in the simulator:

titleBarIssue

Any ideas on how I can get rid of this thing or at least change it’s title? The only thing that seems to change it is when I load a very small image it will expand to fill the remaining view space like so:

largeTitleBar

I’ve deleted the UIImageView and even the view in the nib and it’s still there. I’ve even deleted the nib itself and nothing changes. I can only guess that the superview is loading it somehow but I can’t find anything in there that could cause it. If it were coming from the cell method it would have the title of the image and not just “title.”

Here’s the code from the Superview (which is a table view controller) that initializes the screen with the problem:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = [indexPath row];
NSString *title = [completePicturesList objectAtIndex:row];
NSArray *sysPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES );
NSString *docDirectory = [sysPaths objectAtIndex:0];
NSString *imagePath = [NSString stringWithFormat:@"%@/%@", docDirectory, title];

UIImage *image = [[UIImage alloc] initWithContentsOfFile:imagePath];

GCDetailViewController *childController = [[GCDetailViewController alloc] init];
childController.mainImage = image;
[self.navigationController pushViewController:childController animated:YES];

}

and here’s the viewWillAppear of the UIViewController that’s showing the duplicate:

- (void)viewWillAppear:(BOOL)animated { 
[super viewWillAppear:animated];

mainImageDisplay.image = mainImage;

UIBarButtonItem *editButton = [[UIBarButtonItem alloc] initWithTitle:@"Save"
                                                               style:UIBarButtonItemStyleBordered target:self action:@selector(saveImageToPhotoAlbum)];
self.navigationItem.rightBarButtonItem = editButton;
NSString *titleText = [NSString stringWithFormat:@"Image Review"];
self.title = titleText;

The only other methods in this class are for saving the photo. Also, no nib is assigned to this either so it’s not there. As for self.title, well if I change that it changes the text that says “Image Review” NOT the “title” below it. If I try to hide the navigation bar it hides the image review bar and the title bar stays.

Just for fun here’s the cellForRow method to see if maybe it’s something in there:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

{

static NSString *CellIdentifier = @"newCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}

NSUInteger row = [indexPath row];
NSArray *sysPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES );
NSString *docDirectory = [sysPaths objectAtIndex:0];
NSString *cellTitle = [completePicturesList objectAtIndex:row];
NSString *imagePath = [NSString stringWithFormat:@"%@/%@", docDirectory, cellTitle];
UIImage *image = [[UIImage alloc] initWithContentsOfFile:imagePath];

cell.textLabel.text = cellTitle;
cell.imageView.image = image;

return cell;

}

  • 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-12T21:35:26+00:00Added an answer on June 12, 2026 at 9:35 pm

    Please excuse me if it’s not OK to answer my own question but I did find the solution.

    The title bar came from an old nib. I made it in the storyboard, added the bar, then changed my mind on how I wanted to approach it and deleted it.

    For whatever reason when I was reloading the app, both on the simulator and on my phone, it wasn’t overwriting the old nib that originally caused this problem (even though it was deleted from xCode). I simply deleted the app from the phone and simulator and reloaded it and the title bar was gone.

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

Sidebar

Related Questions

I have a table view controller with (among others) a cell that is to
I have a view controller that shows up a table view controller when a
I have a calendar_date_select in a view that shows a table listing all the
So I have an application that embeds a Navigation Controller inside a Tab Bar
In my app, I have a table view controller that creates a couple of
I have a view controller that has a tableView in it. When I set
I want to have a ViewController that has a table view on the top
I have a Table View Controller with cells. I want to update the text
I have a table view controller with custom cells. In those cells i added
I have a table view controller which doesn't let me manually scroll to the

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.