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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:53:20+00:00 2026-06-02T23:53:20+00:00

I am new to iphone development with objective C and XCode 4.2. Right now

  • 0

I am new to iphone development with objective C and XCode 4.2. Right now I successfully instantiated a UITableViewController and it can traverse a multi level json data tree. however, I’m having trouble establish the UI for the leaf page. Let me show you a snippet of code so far:

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

        [tableView deselectRowAtIndexPath:indexPath animated:YES];
        int row = [indexPath row];
        NSString * currentrow = [NSString stringWithFormat:@"%d.",row];


        NSDictionary * item = [dataArray objectForKey:currentrow];
        NSDictionary * children = [item objectForKey:@"children"];
        if(children != nil)
        {
            uinavTableViewController *childView = [[uinavTableViewController alloc] init];
            childView.dataArray = children;
            [self.navigationController pushViewController:childView animated:YES]; 
        }
        else
        {
            uinavMenuItem * childView = [[uinavMenuItem alloc] init];
            //uinavSecondViewController * childView = [[uinavSecondViewController alloc] init];
            [self.navigationController pushViewController:childView animated:YES]; 
        }
}

So the first part of the if statement will check if there are children nodes, if so create another uinavTableViewController. This part works perfectly.

The else statement creates a leaf page using the uinavMenuItem. When I run this in the simulator, the leaf page is just a black screen. I looked in my NSLog and can confirm that the uinavMenuItem viewDidLoad did get fired. So the controller code is working fine, but i just don’t know how to link up to the view I’ve drawn in the storyboard.

What am I doing wrong that prevents the uinavMenuItem from displaying what I’ve drawn in the storyboarD?

  • 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-02T23:53:22+00:00Added an answer on June 2, 2026 at 11:53 pm

    When you want to init a view controller you made in the storyboard, use UIStoryboard‘s -instantiateViewControllerWithIdentifier. You define this identifier in the storyboard under the view controller’s properties. Your view is loaded but empty because it’s not loading what you have in the storyboard. It’s probably calling -loadView because it cannot find one.

    Here’s where you enter the identifier:

    Enter the identifier here

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

Sidebar

Related Questions

I am new to iPhone/Objective-C development, I am successfully parsing XML with NSXMLParser but
I am new to Objective C and iPhone development. I am using CoreData on
I am fairly new to a objective-c or in whole mac/iphone development. My question
I'm new to iPhone development and Xcode, so this might be really obvious. I
I'm new to iPhone/Objective-C development. I jumped the gun and started reading and implementing
i'm new here, i'm new in iphone development, i'm new in Objective-c and i'm
I am new to Objective-C and iPhone Development and while I am familiar with
I'm new to Objective-C and iPhone development and have been using Apress' Beginning iPhone
I am an old developer but new to Objective-C and iPhone development. I am
I am new to objective-c and iPhone app development. Currently I've been faced with

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.