App shuts down when pushing UIbutton!
<p>For reasons unknown my app shuts down upon pressing a UIButton in the simulator. I have dynamically added my UIView, if that is of relevance. No tracelog or debug information just a rush exit...</p>

<p>This is the simple code (.m-file):</p>

<pre><code>- (IBAction) testButtonPressed: (id) sender{
    NSLog (@"Testbutton pressed.");
}
</code></pre>

<p>From the header file:</p>

<pre><code>- (IBAction) testButtonPressed: (id) sender;
</code></pre>

<p>Pretty basic stuff, but for some reason the app terminates. Help!</p>

<p><em>EDIT</em> The program crashes immediately when I either tap in a textfield, push a button or in any other way interact with the user interface. From my subview:</p>

<pre><code>LoginViewController *myLoginViewController = [[LoginViewController alloc] initWithNibName:@"LoginView" bundle:nil];
[[UIApplication sharedApplication].keyWindow addSubview:myLoginViewController.view];
[[UIApplication sharedApplication].keyWindow makeKeyAndVisible];
</code></pre>
