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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:03:05+00:00 2026-06-11T14:03:05+00:00

I have a main .xib file that contains an App Delegate, Window, and View

  • 0

I have a main .xib file that contains an App Delegate, Window, and View Controller ABC objects. When I click on the object “View Controller ABC”, it shows it’s outlets defined in the .h class file.

Now I want the main .xib to show a different View Controller XYZ on first init. How do I replace the view controllers? I tried dragging a new View Controller object, but I don’t know how it references the XYZ class.

App Delegate .h

@interface JabberClientAppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    ViewControllerXYZ *viewController;

}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet ViewControllerXYZ *viewController;

App Delegate .m

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

    [DDLog addLogger:[DDTTYLogger sharedInstance]];

    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    return YES;
}

I tried to replace the View Controller property with the new XYZ class. But the .xib doesn’t get updated.

Any suggestions how to update the .xib?
Thanks

  • 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-11T14:03:07+00:00Added an answer on June 11, 2026 at 2:03 pm

    I guess you need to change the kind of class for your UIViewController on the XIB, so you can access the IBOutlets of your XYZ UIViewController. Like this:

    enter image description here

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

Sidebar

Related Questions

Greetings, Problem: I have a main view, that already is associated with a xib
HI have a custom view class that is loaded and placed within my main
In my app I have a xib that has several viewcontrollers and xibs (with
Looking for some guidance. In my main window nib file, i have a tab
I have a table view which loads another xib file and uses the content
I have come across this Cocoa application (source code) that shows a main Window.
The main view of my app don't have a UINavigationController but when a button
I have main window which has inner grid components. When I press a button
I have main table called 'Employee' and another slave table called 'EmployeeTypes' that has
Splash I have main activity UI startup operations that take between 5-10 seconds (that

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.