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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:50:19+00:00 2026-06-05T18:50:19+00:00

I am creating an iPad app using XCode 4 and Storyboards. I have a

  • 0

I am creating an iPad app using XCode 4 and Storyboards. I have a TabBar Controller with two UIViews. I have my iPad app and Kal in a workspace. I am trying to copy some of the Kal sample code to get the calendar to display. This is what I have copied (with minimal changes):

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions  {

//  initialization...
KalViewController *kal = [[KalViewController alloc] init];
kal.title = @"Saori";

//  configuration
kal.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Today" style:UIBarButtonItemStyleBordered target:self action:@selector(showAndSelectToday)];
kal.delegate = self;
EventKitDataSource *dataSource = [[EventKitDataSource alloc] init];
kal.dataSource = dataSource;

// Setup the navigation stack and display it.
navController = [[UINavigationController alloc] initWithRootViewController:kal];
[window addSubview:navController.view];
[window makeKeyAndVisible];

return YES;

}

On the last 3 lines (Setup the navigation stack and display it) I am getting errors such as undeclared “navController”, and “window”. I don’t believe the 3 lines belong in this app because I have the TabBar Controller, but I don’t know what to replace them with to display the calendar.

How do I take my existing code and display the Kal calendar in the TabBar Controller’s UIView?

  • 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-05T18:50:21+00:00Added an answer on June 5, 2026 at 6:50 pm

    You are right that you don’t need the bottom 3 lines, but in fact, you don’t need any of these lines. If you’re using StoryBoards you should be able to setup your view stack entirely from there. The only thing you might need is to add the EventKit datasource to your Kal view controller, but you can do that from [KalViewController viewDidLoad:]. Your view stack should look like this:

    Window -> Tab Bar Controller -> Nav Bar Controller -> Root View Controller

    So by adding your Nav Bar view controller directly to the window, you’re skipping the Tab bar controller entirely.

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

Sidebar

Related Questions

I'm creating an iPad app, and I have two classes: NWRootViewController : UITableViewController and
If I'm creating a universal iPhone/iPad app, I have two XIBs. One main XIB
I am creating an iPad app using the master-detail template available in Xcode 4.3.
I am creating and iPad application using XCode version 4.3.2. I am having trouble
I am creating an iPad app. I do not yet have the $99 dev
I'm trying to do the basics steps of creating a universal (iphone/ipad) app in
I am creating a monotouch ipad app. I have a popover with tableview in
In the iPad app that I'm creating, I'm trying to handle the uncaught Exceptions
I'm creating a drawing app ( text ) for the iPad using OpenGL. I've
I don't have a iPad, and [bizarrely] creating an iPad app (for the experience

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.