App shuts down when pushing UIbutton!

Posted by maralbjo on Stack Overflow See other posts from Stack Overflow or by maralbjo
Published on 2010-06-16T12:20:31Z Indexed on 2010/06/16 12:22 UTC
Read the original article Hit count: 125

Filed under:

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!

© Stack Overflow or respective owner

Related posts about iphone