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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:51:54+00:00 2026-06-16T22:51:54+00:00

I am trying to make an app when I use a log in screen

  • 0

I am trying to make an app when I use a log in screen and I communicate to a server.

When I connect to the server it returns me a value true if my log in is correct or false if its incorrect.

Then I try to make the app to switch in a new UIViewController (after I press the log in button) if only the log in is correct.

For that I store the value that server returns in a string and compare that with another and implement the UIViewController switch.

After running my app I get an error

:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 

Could not load NIB in bundle: 'NSBundle </Users/dimitriskoumouras/Library/Application Support/iPhone 

Simulator/6.0/Applications/9E756F03-38C1-453C-A26E-497AA7DDAECA/Administrator.app> (loaded)' 

with name 'FourthViewController.xib''!! 

Posting some code :

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData*)data {
    NSLog(@"EWYFPicOneViewController - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData*)data {");
    string = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
    NSLog(@" data == %@",string);

    NSString *compare = [NSString stringWithFormat:@"true"];

    if ( [compare isEqualToString:string])  {
        UIViewController* FourthViewController = [[UIViewController alloc] initWithNibName:@"FourthViewController.xib" bundle:[NSBundle mainBundle]];
        [self.view addSubview:FourthViewController.view];
    }
    else
        NSLog(@"validation not complete");
}

Any thoughts?? (i start to think that maybe my whole logic is wrong)..

Thanks in advance!!

  • 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-16T22:51:55+00:00Added an answer on June 16, 2026 at 10:51 pm

    Try this after parsing…

     if ( [compare isEqualToString:string])  {
    
    UIViewController* FourthViewController = [[UIViewController alloc] initWithNibName:@"FourthViewController" bundle:[NSBundle mainBundle]];
     [self.navigationController pushViewController:FourthViewController animated:YES];
    

    }

    and also use this….

      UIViewController* FourthViewController = [[UIViewController alloc] initWithNibName:@"FourthViewController" bundle:[NSBundle mainBundle]];
      [self.view addSubview:FourthViewController.view];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an app in which i use the Grouped Table
I'm trying to make my app a good Windows citizen, so I use matching
I'm trying to make my first app for Microsoft Surface. I need to use
I am trying to make this landscape only iphone app. I only use this
I'm trying to make use of the Google Drive APIs to send a log
If I'm trying to make my App work on older devices, I use the
I am trying to make a Facebook Connect web app more mobile friendly. I
I'm converting my Lion app to use the App Sandbox. I'm trying to make
I'm trying to make a small java app. that can log in to my
I am trying to make App Distribution from Facebook for android apps. But the

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.