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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:19:39+00:00 2026-05-29T23:19:39+00:00

I have a primarly code based iphone sample app that works. It is Navigation

  • 0

I have a primarly code based iphone sample app that works. It is Navigation based app. This sample app code comes with a RootViewController (.h and .m). I am trying to import another

#import "TopView.h"

…

#pragma mark UITableViewDelegate methods

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    UIViewController *viewController;
    TopView *TopViewController;
switch (indexPath.row) {
    case PDF: 
        viewController = [[[PDFExampleViewController alloc] init] autorelease];
                    [self.navigationController pushViewController:viewController animated:YES];
        break;
    case TopView: 
        tableviewController = [[[TopView alloc] init] autorelease];
                    [self.navigationController pushViewController:viewController animated:YES]; 
        break;
    default: 
        viewController = [[[UIViewController alloc] init] autorelease];
                    [self.navigationController pushViewController:viewController animated:YES];
} 

}

I am getting SigAlerts. I am trying to import the following simple TableView Xib based sample code.
http://www.icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitableview-with-an-nsarray/

Above UITableView based one works by itself. My head spinning trying to debug the SigAlerts and setter errors. Any help on importing above UITableView into the main app would be greatly appreciated.

  • 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-29T23:19:41+00:00Added an answer on May 29, 2026 at 11:19 pm

    What is TopView? Is this a UIViewController? If so please change the name as it is misleading. From the name it looks like a UIView subclass

    If this is not a UIViewcontroller, you cannot push it like the following. A UIView cannot be pushed on to a UINAvigationController.

     case TopView: 
            tableviewController = [[[TopView alloc] init] autorelease];
           [self.navigationController pushViewController:viewController animated:YES]; 
    

    Also what are the values of these which you are using in the Switch-Case

    PDF
    TopView 
    

    In addition there is a typo?

     tableviewController //supposed to be topViewController??
    

    Another one, from next time onwards name your instance variables starting with small letter

    i.e topViewController and NOT TopViewController

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

Sidebar

Related Questions

I'm trying to implement search code in my CoreData-based iPhone app. I'm not sure
This is driving me nuts. I have the following code that, when a button
I have this model in django: class JournalsGeneral(models.Model): jid = models.AutoField(primary_key=True) code = models.CharField(Code,
I have some code that produces a set of primary key values that I
I have a SIFR script which coverts primary navigation items thusly: [code] /********************* *
I have a method that checks certain things and returns a Boolean based on
I'm a relative newbie to MVC. The app that I've written works and I
Hope some of you might have faced this requirement:- I have desktop based product,
ok so i have this problem that i need to achieve...Here is my site
I have this table: -id : primary key -code : CHAR(8) unique Is there

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.