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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:21:24+00:00 2026-05-28T08:21:24+00:00

I’m trying to follow the Features Example for the Inferis/ViewDeck library here . However

  • 0

I’m trying to follow the Features Example for the Inferis/ViewDeck library here. However the Root View Controller is loading but not passing to my Login View. I am using the Login View in place of the View Deck Choices View.

APAppDelegate.h

#import <UIKit/UIKit.h>
@class LoginController;

@interface APAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

APAppDelegate.m

#import "APAppDelegate.h"
#import "RootViewController.h"

@implementation APAppDelegate

@synthesize window = _window;


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
    RootViewController *rootController = (RootViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@"RootViewController"];
    self.window.rootViewController = rootController;//[[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
    [self.window makeKeyAndVisible];
    return YES;
}

I had to use the MainStoryboard for mine because I am using a storyboard and he uses xib. By trying to initwithNibName in the appdelegate I was getting an error saying the RootViewController didn’t exist.

RootViewController.h

#import <UIKit/UIKit.h>

@interface RootViewController : UIViewController
{

}

@property (nonatomic, retain) IBOutlet UIView *loginView;
@property (nonatomic, retain) UINavigationController *navController;

@end

RootViewController.m

#import "RootViewController.h"
#import "IIViewDeckController.h"
#import "LoginController.h"
#import "SideMenuView.h"
#import "APCustomerViewController.h"

@implementation RootViewController
@synthesize loginView = _loginView;
@synthesize navController = _navController;
- (void)viewDidLoad
{
    NSLog(@"RootViewController viewDidLoad");
    [super viewDidLoad];

    // Override point for customization after application launch.
    LoginController *loginController = [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];

    self.navController = [[UINavigationController alloc] initWithRootViewController:loginController];
    self.navController.navigationBar.tintColor = [UIColor darkGrayColor];

    self.navController.view.frame = self.loginView.bounds;
    [self.loginView addSubview:self.navController.view];
    NSLog(@"End RootViewController viewDidLoad");
}

LoginController.h

#import <UIKit/UIKit.h>
@class KeychainItemWrapper;
@class DataClass;

@interface LoginController : UITableViewController <UITextFieldDelegate>
{
    IBOutlet UITextField *userField;
    IBOutlet UITextField *passwordField;
    IBOutlet UISwitch *saveLogin;
    UIActivityIndicatorView *activitySpinner;
    KeychainItemWrapper *keychain;
    DataClass *dataObj;

    id delegate;
}

@property (nonatomic, retain) IBOutlet UITextField *userField;
@property (nonatomic, retain) IBOutlet UITextField *passwordField;
@property (nonatomic, retain) IBOutlet UISwitch *saveLogin;
@property (nonatomic, retain) id delegate;

@end

LoginController.m

- (void)viewDidLoad
{
    NSLog(@"LoginController viewDidLoad");
    [super viewDidLoad];
    [userField setDelegate:self];
    [passwordField setDelegate:self];
    TextFieldDelegate *myDelegate = [[TextFieldDelegate alloc] init];
    [self setDelegate:myDelegate];
    //set the delegate's currentViewController property so that we can add a subview to this View. 


    activitySpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
    activitySpinner.frame = CGRectMake(0.0, 0.0, 40.0, 40.0);
    activitySpinner.center = self.view.center;
    [self.view addSubview:activitySpinner];

    keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"APLogin" accessGroup:nil];
    [userField setText:[keychain objectForKey:(__bridge id)kSecAttrAccount]];
    [passwordField setText:[keychain objectForKey:(__bridge id)kSecValueData]];

    if ([userField text] != @"" && [passwordField text] != @"") {
        [saveLogin setOn:YES];
    }

    dataObj = [DataClass getInstance];

    // Do any additional setup after loading the view from its nib.
}

Log File

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 18487.
2012-01-20 11:56:11.586 Appointment-Plus[18487:f803] RootViewController viewDidLoad
2012-01-20 11:56:11.589 Appointment-Plus[18487:f803] End RootViewController viewDidLoad

I have all my class names in the storyboard nibs the same as the class files. As you can see the RootViewController viewDidLoad is running completely but the LoginController is not running at all. I’m trying to get the LoginController to run from the RootViewController.

My ultimate goal is to get the facebook style menu that slides out but only on some pages. The pages that will use the menu are after the LoginController.

1.) User opens app and gets the login page
2.) User logs in and gets the main page with the facebook ios style menu
3.) When a user clicks an item it can go to a new page that will not have the side menu.

From what I understand a RootViewController is needed in order to manage all this.

  • 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-28T08:21:25+00:00Added an answer on May 28, 2026 at 8:21 am

    I decided not to use the library and just used a root view controller and created my own slide menu.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but

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.