Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiview application crash
    primarykey
    data
    text
    <p>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 <a href="http://youtu.be/ph3XhJD8QAI" rel="nofollow">video tutorial</a>.</p> <pre><code> [self presentModalViewController:second animated:YES]; along with the program received a SIGABRT message ! </code></pre> <p>Checking the debugger showed me the following message: <code>Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;gainview 0x6a10d10&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label1.'</code></p> <p>This is my full code:</p> <p><strong>code in the disclaimer view</strong> </p> <pre><code>-(IBAction)switchtoview2:(id)sender{ secondview *second = [[secondview alloc]initWithNibName:nil bundle:nil]; [self presentModalViewController:second animated:YES]; } </code></pre> <p><strong>code in the main menu (i get the error when pressing the button in this view)</strong></p> <pre><code>-(IBAction)swichtogain:(id)sender{ gainview *second = [[gainview alloc]initWithNibName:nil bundle:nil]; [self presentModalViewController:second animated:YES]; //debugger highlights this line ! } </code></pre> <p>When hitting the button it is supposed to go to another view where I have few buttons: UItextfields and few pickers. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload