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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:22:42+00:00 2026-05-24T07:22:42+00:00

I have the mainWindow.xib in my application with a TabController in it for my

  • 0

I have the mainWindow.xib in my application with a TabController in it for my main-menu.

Now I want to have a Login-form for my application.
I added a View (LoginViewController) and show this view at beginning:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// Add the tab bar controller's current view as a subview of the window

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

LoginViewController *lvc = [[LoginViewController alloc]     initWithNibName:@"LoginViewController" bundle:nil];
lvc.delegate = self;
[self.tabBarController presentModalViewController:lvc animated:false];
[lvc release];

return YES;
}

Next I have my login-checks in the view, okay.

Now I try to dismiss the view after this.
For this I searched around and found the question here: present modal view controller

I add all things to my project, but getting a error in this code:

#import <UIKit/UIKit.h>

@interface Animexx3AppDelegate : NSObject <UIApplicationDelegate, 
                            UITabBarControllerDelegate, LoginViewControllerDelegate>
{
UIWindow *window;
UITabBarController *tabBarController;
}

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

@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;

@end

Which means “cannot find protocol LoginViewControllerDelegate” in line 2/3.

Addition in the line “lvc.delegate = self” I get a warning that tells me “assigning to “id” from incompatible type “Animexx3AppDalagte”.

What did Im wrong?

  • 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-24T07:22:42+00:00Added an answer on May 24, 2026 at 7:22 am

    You need to import the header file where you declared the LoginViewControllerDelegate protocol. Most likely the LoginViewController.h file.

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

Sidebar

Related Questions

I have MainWindow.xib in the application. In the Interface Builder, I rotate the main
I have a view that is loaded in the MainWindow.xib. It is just a
I have an IPhone application that I want to attempt login and do some
I have a View Controller inside my MainWindow.xib file that loads the nib Cover
I have setup coredata in my appDelegate, but it first loads the mainWindow.xib and
Guys, I have a basic WPF application. Contains App.xaml as always and a Mainwindow.xaml.
I have an Air application with a main window. I would like to have
I would like to have an OpenGL view with an utility application. What I
I have a problem where the button's I have added to .xib file are
I am confused, I have an iOS app targeted for Iphone The MainWindow.xib file

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.