tags:

views:

38

answers:

1

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...

This is the simple code (.m-file):

- (IBAction) testButtonPressed: (id) sender{
    NSLog (@"Testbutton pressed.");
}

From the header file:

- (IBAction) testButtonPressed: (id) sender;

Pretty basic stuff, but for some reason the app terminates. Help!

EDIT 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:

LoginViewController *myLoginViewController = [[LoginViewController alloc] initWithNibName:@"LoginView" bundle:nil];
[[UIApplication sharedApplication].keyWindow addSubview:myLoginViewController.view];
[[UIApplication sharedApplication].keyWindow makeKeyAndVisible];
A: 

additional information moved to question.

maralbjo
Please don't post additional information as an "Answer". You can edit your question or add comment to your question instead.
progrmr