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

The Archive Base Latest Questions

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

I made a multiview based application. My app has 3 views. The first is

  • 0

I made a multiview based application. My app has 3 views. The first is a disclaimer notice. When the user agrees it takes them to the main menu. From there, if they click a button, they will be taken to the respective views. One view is where the user can enter values (upon which a calculation is done). When I click the button to go to that view my app crashes and the following code gets highlighted. I followed this video tutorial.

 [self presentModalViewController:second animated:YES]; along with the program received a SIGABRT message ! 

Checking the debugger showed me the following message: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<gainview 0x6a10d10> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label1.'

This is my full code:

code in the disclaimer view

-(IBAction)switchtoview2:(id)sender{

    secondview *second = [[secondview alloc]initWithNibName:nil bundle:nil];
    [self presentModalViewController:second animated:YES];
}

code in the main menu (i get the error when pressing the button in this view)

-(IBAction)swichtogain:(id)sender{
    gainview *second = [[gainview alloc]initWithNibName:nil bundle:nil];
    [self presentModalViewController:second animated:YES]; //debugger highlights this line !     
}

When hitting the button it is supposed to go to another view where I have few buttons: UItextfields and few pickers.

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

    Highly likely, you have a problem with one of your nib files, or a mismatch between nib definition and your classes.

    In the nib associated to the controller that you are trying to show modally, check:

    1. that all connections among outlets and objects are correct;

    2. that the class identity of you nib objects is the one you expect to be (specifically for your controller/file’s owner);

    3. that your Objective C classes have all their IBOutlets defined.

    If you need more help, you should post some more code…

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

Sidebar

Related Questions

I made this app that takes time entries from fogbugz and posts them to
I made a multiview app based on this Tutorial .Here is my code in
Made some changes to my Django app's model and used South to migrate them
I made a UIView using Interface Builder with a top bar that has Cancel
Made an app targeting API8 and it's running fine on all emulator images all
Made a new window application. Right-clicked Frameworks > Add Existing Frameworks. Selected Frameworks folder,
I made a simple application in which an MDI parent loads a child form
I made a form using the Qt Designer which has some dockwidgets, these dockwidgets
I made a small application and I am ready to distribute it. I want
I made an application to take the now playing title and artist from an

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.